GdkVisualType

A set of values that describe the manner in which the pixel values for a visual are converted into RGB values for display.

Values

ValueMeaning
StaticGray0

Each pixel value indexes a grayscale value directly.

Grayscale1

Each pixel is an index into a color map that maps pixel values into grayscale values. The color map can be changed by an application.

StaticColor2

Each pixel value is an index into a predefined, unmodifiable color map that maps pixel values into RGB values.

PseudoColor3

Each pixel is an index into a color map that maps pixel values into rgb values. The color map can be changed by an application.

TrueColor4

Each pixel value directly contains red, green, and blue components. Use gdk.visual.Visual.getRedPixelDetails, etc, to obtain information about how the components are assembled into a pixel value.

DirectColor5

Each pixel value contains red, green, and blue components as for gdk.types.VisualType.TrueColor, but the components are mapped via a color table into the final output table instead of being converted directly.