//docs/MPImage.doc/MPPalToGrey
NAME
MPPalToGrey -- Convert palette image to GreyScale (V7)
SYNOPSIS
MPPalToGrey(Width,Height,pal,chunky,nPlanes,camg,Linear);
D0 D1 A0 A1 D2 D3 D4
void MPPalToGrey
(UWORD,UWORD,UBYTE *,UBYTE *,UWORD,ULONG,BOOL);
FUNCTION
Convert palette image to GreyScale.
INPUTS
Width - Width of image.
Height - Height of image.
pal - The current palette. This is a 768 byte array.
[0] to [...] hold the Red palette
[256] to [256+...] hold the Green palette
[512] to [512+...] hold the Blue palette
chunky - The current chunky pixels.
nPlanes - The number of planes in the current palette.
camg - The camg of the current palette.
Linear - If True then map linear,
otherwise give more weight to Green.
RESULT
The data pointed to by chunky is updated to the GreyScale pixels.
EXAMPLE
NOTES
nPlanes and camg are required to cater for EHB and HAM.
BUGS
Not tested.
SEE ALSO
MPPalToRGB().