1
我已经写了下面的代码添加图像作为背景黑莓screen.The图像大小为320 * 240.The图像被添加到屏幕,但然后我想根据BB屏幕高度和宽度的大小增加其高度和宽度。增加图像的高度widht根据BB屏幕大小
以下是代码我已经写:
Bitmap xtclogoBitmap = Bitmap.getBitmapResource("launch_xtc.jpg");
BitmapField xtcbitmapField = new BitmapField(xtclogoBitmap,Field.USE_ALL_HEIGHT | Field.USE_ALL_WIDTH);
add(xtcbitmapField);
我怎样才能提高图像的高度和宽度按照BB的屏幕尺寸?
可能重复的[黑莓 - 如何调整图像?](http://stackoverflow.com/questions/1769755/blackberry-how-to-resize-image) – 2010-12-20 14:04:05