#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "Lgi.h"
Functions | |
COLOUR | RgbToHls (COLOUR Rgb24) |
COLOUR | HlsToRgb (COLOUR Hls) |
GSurface * | ConvertDC (GSurface *pDC, int Bits) |
Converts a context to a different bit depth. | |
COLOUR | CBit (int DstBits, COLOUR c, int SrcBits, GPalette *Pal) |
Converts a colour to a different bit depth. | |
COLOUR | GdcGreyScale (COLOUR c, int Bits) |
Turns a colour into an 8 bit grey scale representation. |
Converts a context to a different bit depth.
pDC | The source image |
Bits | The destination bit depth |
References GSurface::Blt(), GSurface::Create(), GSurface::X(), and GSurface::Y().