07-17-2009, 06:04 AM
Knows Where the Search Button Is
Join Date: Mar 2009
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | Blackberry 9530 Storm - Problem with screen capturing
Please Login to Remove!
I am using the blackberry 4.7 JDE development environment with in-built 9530 Storm emulator. I just want to capture the screen shot of the current screen in which i have background image, and when selecting the "capture screen" menu item from the menu, it has to capture the screen.
What i am using for capturing is
Display.screenshot(Bitmap) method. I followed the conditions specified in the API i.e, the dimentions of the Bitmap should be matched with the dimentions of the emulator screen. I am not getting any error. But my image is not updating with the captured image. Please tell me a workaround for this application.
Given below is my code which i had put in the menu item
Bitmap b1 = new Bitmap(360, 480);
b1 = Bitmap.getBitmapResource("myimg.png");