I have written the following code to add image as a background to the BlackBerry screen.The image size is 320*240.The image is added to the screen but then I want to increase its height and width according to the size of the BB screen height and width.
Following is the code I have written:
Bitmap xtclogoBitmap = Bitmap.getBitmapResource("launch_xtc.jpg");
BitmapField xtcbitmapField = new BitmapField(xtclogoBitmap,Field.USE_ALL_HEIGHT | Field.USE_ALL_WIDTH);
add(xtcbitmapField);
How can I increase the height and width of the image as per the BB screen size?