//docs/MPImage.doc/MPPalToRGB
NAME
MPPalToRGB -- Convert palette image to RGB (V7)
SYNOPSIS
MPPalToRGB(MPp,pal,chunky,nPlanes,camg);
A0 A1 A2 D0 D1
void MPPalToRGB
( struct MPProcess *,UBYTE *,UBYTE *,UWORD,ULONG);
FUNCTION
Convert palette image to RGB.
INPUTS
MPp - Holds buffers to store the Red, Green and Blue pixels
and the Width and the Height.
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
RESULT
The data pointed to by MPp->Red, MPp->Green and MPp->Blue are updated
to the RGB pixels.
EXAMPLE
NOTES
nPlanes and camg are required to cater for EHB and HAM.
BUGS
Not tested.
SEE ALSO
MPPalToGrey().