how to convert 32 bits color to 256 color

Search this archive.

From: §º¥K¤¯ (descent@mail.cnct.com.tw)
Date: Thu 18 Jul 2002 - 04:45:54 IDT


If I use 16M color mode.
How I convert 16M color to 256 color.
I know use gl_getpixelrgb serial function to get rgc color.
Then I don't how to do.
Convert 16M color to 256 gray I average rgb color (ex : gray = (r+g+b)/3 ).
Is it a right method?


------------------------------------------------------------------
Unsubscribe:  To:   listbot@svgalib.org
              Body: unsubscribe linux-svgalib


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:25 IST