
Originally Posted by
snehalpatil
Hi,
Thanks for the reply,
How to fetch graphics instance?? actually i am not getting what u r saying

See the API doc - for Image class in j2me
try something like this -
Code:
Image target= Image.createImage(tragetWidth, targetHeight); // --- Step 1 create big image
Graphics g = target.getGraphics(); // --- Step 1 - fetch the graphics instance
g.drawImage(img1, 0, 0, TOP|LEFT); // Step 2
g.drawImage(img2, 0, 0, TOP|LEFT);
g.drawImage(img3, 0, 0, TOP|LEFT);
// Step 3 --- now you have a Image called target which has all these small images, do process it with png encoder