chinmaya wrote:
I'm Chinmaya from India working as a Mobile applicatin developer. Right now I'm developing one application in Palm OS.I'm newbie for displaying the image from buffer on the "form Bitmap". I use Palm OS Suite IDE and Palm OS Ver 3.x Emulator for Testing. I'm downloading one PNG Image from net and trying to display it. I could able to download the image byte data and store in buffer perfectly.
Yes, we know. You've asked this question about 5 or 10 times already.
But i'm facing problem to display it. I'd tried many different way but i thing all were wrong way. What I did I tried to display it by force using Bitmap handle and it displays. But it displays only junk picture and it is png (ie may be compressed format).
Doing it by force will definitely not work. Current versions of Palm OS have NO built-in support for PNG images. It is a different format, and if you wish to decode it, you will have to supply YOUR OWN code to decode the PNG. But there is no ready-to-use code that is available for Palm OS. There is a free library called libpng (see http://www.libpng.org/ ), but that library doesn't support Palm OS, so if you want to use that library, then you are going to need to port the library to Palm OS yourself. To put it simply: displaying a PNG image on Palm OS will take days or weeks of work, and it will require more knowledge than a beginner would normally have. Probably the easiest way to solve your problem is to give up on PNG and make the server send the data in some other format, if you have control over the server. Sending in JPEG would be easier, since there is already a Palm OS library for doing that. The library for decoding JPEGs is called pnoJpegLib. If you wish to use pnoJpegLib, you will need to download it and install it along with your application, and you will need to make pnoJpegLib's header files available to your application so that you can call its functions. - Logan -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
