How can I display PNG image?

2003-10-22 Thread sopta
Hi, I have a small problem. I'm receiving PNG files through network and I need to display them. How can I do it? I'm not able to find any hints anywhere. It will be probably necessary to convert them to bitmaps, but the problem stays. How to do it? thanks for any hints/tips/examples Tomas -- Po

PNG pictures

2003-10-29 Thread sopta
Hi, I'm porting one of my applications to various platforms. I've decided also for Palm but I have a small problem. I'm receiving PNG files through network and I need to display them. How can I do it? Is there any library for that purpose? It seems to me that it (display PNG picture) is pretty com

illegal use of BitmapType

2003-11-18 Thread sopta
Hi everybody, I'm trying to do some manipulation with images and I do have a real problem with BitmapType. Whats wrong with this code snippet? short unsigned int dw; static unsigned char bpx[sizeof(BitmapType) + 320 + 1024]; #define bp ((BitmapType *)bpx) bp->width = dw; it shows these errors

sending binary stream of data...

2003-12-01 Thread sopta
Hello, I need to send some data to server using POST method. Problem is that the server doesn't parse the parametres standard way, but rather expects them in this format (in data stream after header is sent): UUstring_oneUUstring_two,... UU = two-byte integer with length of data How should I cod

merging two offscreen bitmaps

2003-12-04 Thread sopta
Hi, I want to copy two small offscreen bitmaps to one bigger. The problem is that they have different color tables. When I copy them to the bigger one then I need to decide which color table to use. When I use colors from the first one that of course has very bad influence on colors in the second p

bitmap palettes

2003-12-16 Thread sopta
I have two bitmaps with different palettes. Now, I need them to display on one screen. So I need to convert both bitmaps to standard palette (256 colors). How can I do it? I've tried few things but nothing works. When I blit offscreen window with both bitmaps to screen the colors are awful (meaning

Re: bitmap palettes

2003-12-17 Thread sopta
Unfortunatelly the problem is a bit more complex. I retrieve images in PNG format from the server. Anyway, I've already solved it but it is awfully inefficient. I simply take pixel after pixel, find RGB values from palete suplied with the picture, lookup the index which have similar RGB values in