At 13:34 Uhr 20.04.1997, Felix Studer wrote:
>Hi,
>
>In the following code a first window (mymain-window) is created and a
>.bmp-file (picture1.bmp) is displayed in this window. Then a dialog is
>opened and another .bmp-file (picture2.bmp) is displayed in this dialog. At
>this moment the colors of the first picture (picture1.bmp) are inverted
>(dark-gray is orange and so on). How can I avoid the modification of the
>colors?
>
I'm no grafic wizzard at all, but I think you can't avoid you problem. The
point is, that the second picture uses another color palette than the first
one. To display a picture the 'color processor' of the graphic card has to
be set to the right colors. But then, some colors of the other picture
doesn't exist any more and the graphic card uses the actual entries. When
you switches to the first picture it's just the other way round.
I suppose you are working in 256-color mode in which you can use 256 out of
16 million. Try 32k or 64k mode. Probably you're getting better results.
- stefan
______________________________________________________________________________
Stefan K. Bamberger email: <informatik.uni-wuerzburg.de at bambi>
Lehrstuhl fuer K"unstliche Intelligenz fax : ++49 931 7056120
Allesgrundweg 12, 97218 Gerbrunn voice : ++49 931 7056118
Universit"at W"urzburg, Germany
______________________________________________________________________________