-
j2me code
In the code given below (assuming all variables are properly defined) what is the function of getSnapshot() & repaint() ?
Player_fld = Manager.createPlayer("capture://video");
Player_fld.realize();
VideoControl_fld = (VideoControl)Player_fld.getControl("VideoControl" );
VideoControl_fld.initDisplayMode(1, this);
VideoControl_fld.setDisplaySize(width, height-20);
Player_fld.start();
VideoControl_fld.setVisible(true);
VideoControl_fld.getSnapshot(null);
repaint();
-
What you asking is real mess-up. Those are another two methods, can you satisfied with that. I don't think, because same as your question doesn't have enough details.
What is VideoControl_fld?
-
It's better if you can provide some guidelines to the OP, then he will learn a lot than present. It's not a good thing to post URL for other forums too.
-
The means of these methods are:
Code:
VideoControl_fld.getSnapshot(null);
- taking a picture, a single frame. and
- calls the canvas to paint it.
You can find more details in the JSR-135 sample in the Sun's WTK.
I Hope it helps you.