Hi ,
How can we get the MMS images from a handset and edit that image according to our requirment using java?
How can we get the image, shot from the in built camera and edit that image according to our requirmrnt using java?
Regards
Chandan
Hi ,
How can we get the MMS images from a handset and edit that image according to our requirment using java?
How can we get the image, shot from the in built camera and edit that image according to our requirmrnt using java?
Regards
Chandan
Hello
You can not get Images from gallery or from MMS into Java because Java has no access to the file system.
How can we get the image, shot from the in built camera and edit that image according to our requirmrnt using java?
Here is the example of taking a snapshot using Mobile Madia Api:
VideoControl vc;
try {
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) {
Form form = new Form("video");
form.append((Item)vc.initDisplayMode (vc.USE_GUI_PRIMITIVE, null));
Display.getDisplay(midlet).setCurrent(form);
}
p.start();
} catch (IOException ioe) { } catch (MediaException me) { }
// now take a picture
try {
byte[] pngImage = vc.getSnapshot(null);
// do something with the image ...
} catch (MediaException me) { }