Maps an image over a palette.
Image
The input image.
Palette
The mapping palette.
The output image.
For every pixel in the input image, the corresponding color entry in the palette is read and written to the output image.