Color conversion
Appearance
Changing one color format to another. Required, for example, when the source color format is different from the destination color format. When going from the monochrome color format to the color format, 1 (one) bits are converted to the image foreground color, and 0 ( zero) bits are converted to the image background color.
When going from color to monochrome, all pels that match the passed background color are converted to the image background color of the destination.
All other pels are converted to the image foreground color of the destination. The color conversion takes place prior to any mix mode.