On Thu, Oct 11, 2001 at 12:09:39PM +0200, Pavel Houdek wrote:
> Hi all,
>
> How can I change a Color Palette for saving and loading (the same for both)
> bitmap for identical result?
>
Unfortunately I don't have time to test your code, but you mentioned that
you are using ms-fps 4.0 and I had exactly the same problem some months
ago. I saved an image and when I loaded it again the colors were all
wrong. I couldn't find anything wrong with my code, until I realised it
was a problem with ms-fps; I compiled the *same* code with compaq visual
fortran 6.1 and everything was ok.
So I am suggesting before spending too much time wondering what's wrong,
try it out with a recent version of that compiler.
By the way, since you 're using KMail you must be running some kind of *nix
system. In that case you might be interested to check out the Ygl graphics
library. It is a LGPL'ed library with basic drawing functions built on top
of Xlib, that comes with Fortran bindings.
Regards,
Panagiotis.
|