Converting a BufferedImage to an Image for the J2ME Wireless Toolkit

A

Aimee J

I am trying to take a BufferedImage that has been captured and have
the image displayed onto a Palm. The image is taken by a camera and
returned as a BufferedImage to the software.

ByteArrayInputStream bais = new ByteArrayInputStream(dpack.getData(),
0, dpack.getLength());
BufferedImage image = ImageIO.read(bais);

The problem is that the BufferedImage class doesn't exist in J2ME. Is
there a way to get around this?

I'd appreciate any help I could get.

Thanks
Aimee
 
K

Knute Johnson

Aimee said:
I am trying to take a BufferedImage that has been captured and have
the image displayed onto a Palm. The image is taken by a camera and
returned as a BufferedImage to the software.

ByteArrayInputStream bais = new ByteArrayInputStream(dpack.getData(),
0, dpack.getLength());
BufferedImage image = ImageIO.read(bais);

The problem is that the BufferedImage class doesn't exist in J2ME. Is
there a way to get around this?

I'd appreciate any help I could get.

Thanks
Aimee

Aimee:

Does ImageIO exist? If it does then:

Image image = (Image)ImageIO.read(bais);

knute...
email s/nospam/knute/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top