Re: RGB565 - RGB888

Search this archive.

From: Sergio Masci (sergio@xcprod.com)
Date: Sun 03 Jun 2001 - 15:57:30 IDT


> >Does anyone have some quick routines to convert RGB565 to RGB888?
> >
> >John
>
> Just make a macro to do that.
> I always use RGB555 over RGB565.
> I don't see the point in having an extra green bit.
>
>                  -- Ted

BEWARE: if you use 5 bits instead of 6 for green, you must still align the
top bit correctly otherwise you will get a fainter green component for your
pixel after you have done the translation.

Sergio


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


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