Share via


Palette Class

Methods | This Package | All Packages

Encapsulates a Windows logical palette.

package com.ms.wfc.ui

public class Palette

Remarks

A logical palette is a group of colors. Windows uses palettes for various operations. For example, Windows may associate a palette with a bitmap to define the set of colors the bitmap uses. Associating a palette with the bitmap conserves memory, since each pixel in the bitmap needs only to reference an entry in the palette, rather than completely specifying its color.

When a system is using a 256-color video driver, Windows uses the driver's palette information to control the display's hardware palette. Windows can display bitmaps using near true color quality in this way, because it optimizes all the colors of a display device to a bitmap.

Typically, WFC handles all palette interactions for you. However, you can use this object to exercise finer control over palette operations.