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 my palete and rewrite the pixel index in the original image. This I repeate for all images and at the end I have one wonderfull image with system palete (only colors are a slightly different, but it is obvious that they have to be). It is very slow, but does the work...:-) Tomas >> 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 that under >> indexes in bitmaps are wrong RGB values. There are from previous >> bitmaps and not from standard palette)..:-(( >if you use pilrc, it will map the bitmaps to the standard OS >palette when it parses the bitmap and converts it. done. >if you are setting your own custom palette in the application >it gets a bit trickier - not much extra work tho >you just need to know what you are doing. >--- >Aaron Ardiri >[EMAIL PROTECTED] -- Stedry tyden na Post.cz. Kontrolujte svou schranku kazdy den! -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
