06-02-2011 03:52 PM
I have a problem in taking a picture from screen.
I record video from camera and paly it on screen. I can use videoControl.getSnapshot() to get an image, but since I do not want the sound goes with the function, I tried to use Display.screenshot(). However,
Bitmap screenbmp = new Bitmap(Display.getWidth(), Display.getHeight());
It only capture the background, basically a pure white image while the video is playing on screen. It also make the screen flush white periodcally since I am trigger the function every a few seconds.
Anyone can help me figure out what is wrong or give some hints? I appreicite your time and help!
Solved! Go to Solution.
06-02-2011 05:56 PM
I push screen twice, the first screen is an user interface, the second screen is the video. Does it has something to do with it? Do I need to get focus on the second screen before I use display.screenshot?
06-03-2011 01:42 PM
well, it is a false alarm, it seems that is some problems of bb simulator. It works fine on device.
Just in case, someone get in this trouble later, try it on device.