Hi everybody,
I'm developing a J2ME application that should get a snapshot from the camera and show it to the user. I initialized the camera as follows
and get an image by callingCode:p = Manager.createPlayer("capture://video"); p.realize(); // Grab the video control and set it to the current display. vc = (VideoControl)p.getControl("VideoControl"); if (vc != null) { videoForm.append((Item)vc.initDisplayMode(vc.USE_GUI_PRIMITIVE, null)); getDisplay().setCurrent(videoForm); } p.start();
The problem is that when i create a Image object and show it on a form or a splashscreen i have clipped image. If I use a Form and append the image to it, the left part of the picture is shown. If i use a splashscreen it shows the central part. But never the whole image.Code:imageData = vc.getSnapshot(null);
What I do is
I'm using a Nokia N73.Code:snapShot = Image.createImage(imageData, 0, imageData.length); getSplashScreen().setImage(snapShot); getDisplay().setCurrent(getSplashScreen());
Anybody got a clue?
Thanks in advance

Reply With Quote


