Thanks Gary,
Thanks for your quick reply. Hmmm... it will be quite
disapointing if we dont find a way to put the decoded image into memory
other than the display buffer. We have no problem doing this with standard
Java or even J2ME. The other questioon I have is do we have access to the
display buffer data after an image is displayed?
-jim munro
-----Original Message-----
From: Gary James [mailto:gary.james@lincmedia.co.jp]
Sent: Wednesday, September 05, 2001 8:14 PM
To: keitai-l@appelsiini.net
Subject: (keitai-l) Re: Decoding .gif or .jpeg images in iAppli
> We need to read encoded image files (gif or jpeg depending on the
> phone)
> from a host server and decode them into memory before we display it.
> So far
> we can only decode and display it at the same time!
>
> In fact, we need to modify the bitstream before we decode it and then
> we
> have to modify the resulting image bit-map before we display it.
>
You can modify the bitstream by first of all reading the data from the
server into a byte array. Once it's in a byte array you can manipulate
it as you wish. The DoJa API doesn't allow you to create an image
directly from a byte array so you should put the byte data into the
scratch pad. You can then create the image from the data stored in the
scratch pad.
I don't think it's possible to manipulate an image once it has been
unencoded into an Image object.
Hope this helps!
--
Gary James
Project Leader (Theta Team)
Layer-8 Technologies, LINC Media Group
[ Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/ ]
[ Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/ ]
Received on Thu Sep 6 19:27:13 2001