×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    27

    MMS and image editing(Urgent)

    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

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    382
    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) { }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×