nanogui: white color in images


Previous by date: 16 Jun 2005 07:05:27 +0100 how to disp Chinese with FLNX, lou hui
Next by date: 16 Jun 2005 07:05:27 +0100 valgrind, skoe.nexgo.de
Previous in thread: 16 Jun 2005 07:05:27 +0100 Re: white color in images, Greg Haerr
Next in thread:

Subject: Re: [nanogui] white color in images
From: "Greg Haerr" ####@####.####
Date: 16 Jun 2005 07:05:27 +0100
Message-Id: <111d01c57237$24ba3d00$6401a8c0@winXP>

I've finally fixed the white color display problem with some
images which get decoded to 24 or 32 bpp.  (PNG is always
decoded to 24bpp).

The issue had to do with the transparent color being set to -1
for no transparency, and then I accepted a large enhancement
for alpha channel support.  When the MWRGB() macro is
used to generate white, the alpha channel is also set to 255,
and this generates an all-ones binary value, equivalent to -1,
which the engine thought matched transparent and didn't draw it.

The fix is now included in the 0.92 CVS.

Regards,

Greg



: I have some strange effects while trying to display 16-bit color PNG 
: image on my embedded target. All colors are fine execept for white - it 
: is displayed as black instead. White shades to some extent are also 
: displayed black.
: 
: I using FLTK 1.1.4 on top of mw-0.90 and nxlib-0.45 on 16bpp display. 
: Widgets can use white normally, problem exists only for images.


Previous by date: 16 Jun 2005 07:05:27 +0100 how to disp Chinese with FLNX, lou hui
Next by date: 16 Jun 2005 07:05:27 +0100 valgrind, skoe.nexgo.de
Previous in thread: 16 Jun 2005 07:05:27 +0100 Re: white color in images, Greg Haerr
Next in thread:


Powered by ezmlm-browse 0.20.