Class GDK2.Visual
- Description
A GdkVisual describes a particular video hardware display format. It includes information about the number of bits used for each color, the way the bits are translated into an RGB value for display, and the way the bits are stored in memory.
- Inherit
Object
inherit G.Object : Object
- Method
create
GDK2.Visual GDK2.Visual(voidbest,voiddepth,voidtype)- Parameter
best If best is false the systems default GDK screen is returned, otherwise the screen that best fulfills the given depth and type. If none is given, the one with most colors is selected.
- Parameter
depth The requested bit depth, or 0.
- Parameter
type The requested visual type.
GDK_VISUAL_STATIC_GRAYEach pixel value indexes a grayscale value directly.
GDK_VISUAL_GRAYSCALEEach pixel is an index into a color map that maps pixel values into grayscale values. The color map can be changed by an application.
GDK_VISUAL_STATIC_COLOREach pixel value is an index into a predefined, unmodifiable color map that maps pixel values into RGB values.
GDK_VISUAL_PSEUDO_COLOREach pixel is an index into a color map that maps pixel values into rgb values. The color map can be changed by an application.
GDK_VISUAL_TRUE_COLOREach pixel value directly contains red, green, and blue components. The red_mask, green_mask, and blue_mask fields of the GdkVisual structure describe how the components are assembled into a pixel value.
GDK_VISUAL_DIRECT_COLOREach pixel value contains red, green, and blue components as for GDK_VISUAL_TRUE_COLOR, but the components are mapped via a color table into the final output table instead of being converted directly.