ColorPalette
Defines an array of colors that make up a color palette. The colors are 32-bit ARGB colors. Not inheritable.
Gets an array of Color structures.
Gets a value that specifies how to interpret the color information in the array of colors.
public static ColorPalette CreateOptimalPalette(int colors, bool useTransparentColor, Bitmap bitmap)