Is it possible to getSnapshot without displaying picture on any Canvas? I've tried many possible combinatons but allways ends up with black rectangle if i don't display image on Canvas (make video canvas current)?
Here are some parts of application. First, camera is initialized
player1 = Manager.createPlayer ("capture://video");
player1.realize ();
vc1 = (VideoControl)player1.getControl ("VideoControl");
vc1.initDisplayMode (VideoControl.USE_DIRECT_VIDEO, videoCanvas);
vc1.setDisplayFullScreen(false);
vc1.setVisible(true);
player1.start();
after that I try to capture pictures in separate Thread.
while(true) {
disp.setCurrent(videoCanvas);
capture();
disp.setCurrent(appCanvas);
appCanvas.repaint();
}
I would like to do that without
disp.setCurrent(videoCanvas);
in upper code. If I comment out this line then all I get is black rectangle..

Reply With Quote


