NAME MPPalToPal -- Convert image with one palette to another palette (V7) SYNOPSIS MPPalToPal(OldPal,OldCols,NewPal,NewCols,chunky,Width,Height, nPlanes,camg); A0 D0 A1 D1 A2 D2 D3 D4 D5 void MPPalToPal ( UBYTE *,ULONG,UBYTE *,ULONG,UBYTE *,UWORD,UWORD, UWORD, ULONG); FUNCTION Convert image with one palette to another palette. INPUTS OldPal - The current palette. This is a 768 byte array. [0] to [maxcol] hold the Red palette [256] to [256+maxcol] hold the Green palette [512] to [512+maxcol] hold the Blue palette OldCols - The number of colours in the current palette. NewPal - The new palette. This is a 768 byte array. [0] to [maxcol] hold the Red palette [256] to [256+maxcol] hold the Green palette [512] to [512+maxcol] hold the Blue palette NewCols - The number of colours in the new palette. chunky - The chunky pixels. Width - The width of the image. Height - The height of the image. nPlanes - The number of planes in the current palette camg - The camg of the current palette RESULT The data pointed to by chunky is updated to the new palette. EXAMPLE NOTES nPlanes and camg are required to cater for EHB and HAM. BUGS Not tested. SEE ALSO