how can i edit image using j2me

Hello freinds,

i m having prblem with rditing my image after capturing it.....

Actually wt i m doing is just capture the image and save it on memory card..........but how can i edit or modify image before saving it...

i m using Nokia-6681 mobile.....cpturing image using getSnapshot()

method which returns image bytes.

Plz help me out....

Thanx & Regards,

Parag.

[416 byte] By [ParagPatila] at [2007-11-27 9:45:04]
# 1

to access to your image on the memory card , you shuld use FileConnection API

http://developers.sun.com/mobility/apis/articles/fileconnection/index.html

if you don't want to use it, store it in the RMS

check out this..

http://www-128.ibm.com/developerworks/library/j-j2me3/

suparenoa at 2007-7-12 23:53:04 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
actually i want to modify image before saving is there any methode to write the image instead o bytes
ParagPatila at 2007-7-12 23:53:04 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
what do you mean by "modify image before saving"?
suparenoa at 2007-7-12 23:53:04 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
Actually i m capturing image using video control and getSnapshot methodgetsnapshot methode returns bytes of image .......i m writing that bytes to memory card image get saved but..............now i want to draw some text on image how can i do it?
ParagPatila at 2007-7-12 23:53:04 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5

use drawImage(..) from Graphics to draw the image and after, on the same Graphics object

in the paint(...) method, use drawString(...) to draw the text at the specified x and y

check out the link below to see how to draw resized image (can be used to draw image)

http://developers.sun.com/mobility/reference/techart/design_guidelines/image_resizing.html,

you will see the code used to draw images...

suparenoa at 2007-7-12 23:53:04 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6
ya thanx supareno........but when i use draw image and draw string on image...... then can i save it on memory card can i get bytes again from image..........?ParagPatil
ParagPatila at 2007-7-12 23:53:04 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 7
check out this... http://developers.sun.com/mobility/midp/ttips/imagesinrms/
suparenoa at 2007-7-12 23:53:04 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 8
thanx supareno......
ParagPatila at 2007-7-12 23:53:04 > top of Java-index,Java Mobility Forums,Java ME Technologies...