I have a J2ME program that creates an Image object, adds some text to the Image saves the image to the cellphone disk as a JPG or TIFF file.
The only thing I haven't been able to do is to code the Image Object as a JPG or TIFF file.
Anybody knows how to do that? I'll be very greatful for your help.
Image img =Image.createImage(100,100);
Graphics graph = img.getGraphics();
graph.drawString("Hello World!", 0, 0, 0);
Image finalImg = Image.createImage(img);
SaveToJPG(finalImg); // I'm looking for THIS function!!