[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Pallete and bitmap problem
From: ####@####.#### Date: 16 Apr 2008 10:03:20 -0000 Message-Id: <46c9f893672de79f45e922465241f022@www1.mail.volny.cz> Hello all, I am playing with microwindows and I set up a wirtual system. Currently, I have problem with paletes and bitmaps. I can display image with 24 bit colors with no problem. see: http://www.pavelpaces.net/mwin/BkgFULL.bmp. This file is dispalyed right. Then when I convert the image into smaller 8 bit pallete file (see http://www.pavelpaces.net/mwin/Bkg.bmp ). Then I get result depicted in the http://www.pavelpaces.net/mwin/BkgBad.bmp, where colors are somehow disturbed. Any idea, how to solve that? please? Thanx Pavel. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] Pallete and bitmap problem
From: "Greg Haerr" ####@####.#### Date: 16 Apr 2008 16:10:56 -0000 Message-Id: <2cb901c89fdc$63843790$0300a8c0@RDP> : Then when I convert the image into smaller 8 bit pallete file (see http://www.pavelpaces.net/mwin/Bkg.bmp : ). : Then I get result depicted in the http://www.pavelpaces.net/mwin/BkgBad.bmp, : where colors are somehow disturbed. When you use an 8bpp bitmap, the colors are converted to a maximum of 256 different colors, and they are put into a palette that is carried with the .bmp file. Depending on your display bpp, which you didn't specify, these may be re-converted to another palette or to your screen bpp. Thus, there may be considerable degradation. Some of these conversions have been disabled/enabled for various reasons. The code that handles this is in engine/devdraw.c, I think DrawImage, or something like that. The image decoder is in engine/image_bmp.c. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |