tags:

views:

251

answers:

1

Can anyone tell me how i can parse a png image into many png images in J2ME???

I want to write a code that take a image and give many images that have equal pixels.

Can anyone give me sample code????

please help me....It's emergency!

Thanks a lot guys...

A: 

You mean you want to cut it into smaller images?

  1. Load the image.

  2. Convert to a bitmap.

  3. Encode arbitrary rectangles as PNG.

  4. Save the PNGs.

Unfortunately, I don't know anything about image processing usinf J2ME libraries.

Here's what I googled as far as loading a PNG in J2ME.

Using that, you'll be able to see the API calls used, and following the import list, you'll get to the classes used. Look at those class's methods, and yu'll probably come up with what you need.

I did this mostly because you're having an emergency, but frankly, you could have googled this yourself, or composed a question that was clearer, which would have led to someone more knowledgeable about J2ME image processing helping you.

Just don't panic, take a breath, google for what you need, you'll be fine.

tpdi