#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. | |
| COLOUR | GdcMixColour (COLOUR c1, COLOUR c2, double HowMuchC1) |
| blends 2 24bit colours by the amount specified | |
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().
1.5.7.1