[gnuwin32 - Help] RE: [GIFLIB] I'm completely clueless...

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.windows.gnu.user
Message-ID <[email protected]>
Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4861334
By: patrick_

Heh... I just discovered QuantizeBuffer(). I'm finally getting colors in my
image. _However_, it's still not quite right. The grays/whites are slightly
off, with a slight blue tint, but look more white than anything. I don't know
why this is. I would think QuantizeBuffer() would pick the correct colors for
use? Also, I see banding in certain areas of my screen (example, near gradients).
I can see pretty much all colors, though.

Since I'm using GdkPixbufs, I simply grab the pixels:

---
unsigned char *p = pixels + y * rowstride + x * n_channels;
---

Then, I grab the RGB values: p[0], p[1], p[2], respectively. I build up a Red,
Green, and Blue array, then I pass this to QuantizeBuffer(). Then, I write to
EGifPutLine the buffer set by QuantizeBuffer(). I'm using 256 colors, 8BPP.

Any tips?

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.