Gdc2.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "Lgi.h"

Functions

COLOUR RgbToHls (COLOUR Rgb24)
COLOUR HlsToRgb (COLOUR Hls)
GSurfaceConvertDC (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

Detailed Description

Author:
Matthew Allen, fret@memecode.com

Function Documentation

GSurface* ConvertDC ( GSurface pDC,
int  Bits 
)

Converts a context to a different bit depth.

Parameters:
pDC  The source image
Bits  The destination bit depth

References GSurface::Blt(), GSurface::Create(), GSurface::X(), and GSurface::Y().

COLOUR HlsToRgb ( COLOUR  Hsl32  ) 

Converts a hls32 colour to a rgb24

See also:
Hls32

References H32, L32, Rgb24, and S32.

COLOUR RgbToHls ( COLOUR  Rgb24  ) 

Converts a rgb24 colour to a hls32

See also:
Hls32

References B24, G24, Hls32, HUE_UNDEFINED, and R24.


Generated on Wed Dec 1 15:41:00 2010 for Lgi by  doxygen 1.5.7.1