×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    5

    Question How can i edit image in j2me midlet

    hi, I want to develop a mobile application in which i have to edit the existing image and add some text and frame to the image after that save the image to other location or replace the same place.I couldn't able to edit the image.Can any one help me this regard?

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,073

    Re: How can i edit image in j2me midlet

    Quote Originally Posted by sanjeevkate View Post
    hi, I want to develop a mobile application in which i have to edit the existing image and add some text and frame to the image after that save the image to other location or replace the same place.I couldn't able to edit the image.Can any one help me this regard?
    Its simple, fetch the Graphics instance of the image which you want to edit --
    Graphics ig=image.getGraphics();

    Now use this Graphics -- ig, to draw any text on it.

    and then save the image back.

    Saving back as png - this will also be a challenge: you will need to add the png headers to the raw bytes and write it to filesystem.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

Similar Threads

  1. how to edit a image in symbian
    By kunlamp in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2010-03-24, 07:53
  2. Replies: 1
    Last Post: 2009-12-03, 10:44
  3. Carbide.c++ 2.0 UI Designer, Edit Image Property Problem
    By arijr in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2009-05-05, 20:33
  4. How to edit J2ME Polish source code
    By tharindufit in forum Mobile Java General
    Replies: 1
    Last Post: 2008-09-30, 12:39
  5. Replies: 7
    Last Post: 2008-08-07, 15:24

Posting Permissions

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