Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Blackberry 黑莓图像背景重复_Blackberry_Java Me_Background - Fatal编程技术网

Blackberry 黑莓图像背景重复

Blackberry 黑莓图像背景重复,blackberry,java-me,background,Blackberry,Java Me,Background,在我的应用程序中,我正在设置verticalFieldManager的位图图像,但它正在重复。用于设置我正在使用的图像 VerticalFieldManager vertical=new VerticalFieldManager(USE_ALL_HEIGHT | USE_ALL_WIDTH ) { protected void sublayout(int maxWidth, int maxHeight) { super.sublayo

在我的应用程序中,我正在设置verticalFieldManager的位图图像,但它正在重复。用于设置我正在使用的图像

VerticalFieldManager vertical=new VerticalFieldManager(USE_ALL_HEIGHT | USE_ALL_WIDTH )
{
    protected void sublayout(int maxWidth, int maxHeight) 
    {               
       super.sublayout(Display.getWidth(), Display.getHeight());
       setExtent(Display.getWidth(), Display.getHeight());
    }
};

vertical.setBackground(BackgroundFactory.createBitmapBackground(
    Bitmap.getBitmapResource( "bg_640.png" ) ));
它看起来像

我被困在这里了。任何想法都会被打动

谢谢,不用打电话了

vertical.setBackground(BackgroundFactory.createBitmapBackground(Bitmap.getBitmapResource("bg_640.png")));
使用

并传递如下参数:

vertical.setBackground(BackgroundFactory.createBitmapBackground(Bitmap.getBitmapResource("bg_640.png"), 
                       Background.POSITION_X_LEFT, 
                       Background.POSITION_Y_TOP, 
                       Background.REPEAT_NONE));

你能在你的问题中发布bg_640.png图像文件吗?这会让它看起来更清晰,也许还有为什么它现在不适合你?