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/ _______________________________________________ GnuWin32-Users mailing list GnuWin32-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnuwin32-users