GDK Reference Manual
Sets the background color in gc to the specified color (or the closest approximation, in the case of limited visuals). gc : The GdkGC to modify. rgb : The color, represented as a 0xRRGGBB integer value.
Finds the X pixel closest in color to the rgb color specified. This value may be used to set the pixel field of a GdkColor struct. rgb : The color, represented as a 0xRRGGBB integer value. Returns : The X pixel value.
If install is TRUE, directs GdkRgb to always install a new "private" colormap rather than trying to find a best fit with the colors already allocated. Ordinarily, GdkRgb will install a colormap only if a sufficient cube cannot be allocated. A private colormap has more colors, leading to better quality display, but also leads to the dreaded "colormap flashing" effect. install : TRUE to set install mode.
Sets the minimum number of colors for the color cube. Generally, GdkRgb tries to allocate the largest color cube it can. If it can't allocate a color cube at least as large as min_colors, it installs a private colormap. min_colors : The minimum number of colors accepted.
Gets the visual chosen by GdkRgb. This visual and the corresponding colormap should be used when creating windows that will be drawn in by GdkRgb. Returns : The GdkVisual chosen by GdkRgb.
Gets the colormap set by GdkRgb. This colormap and the corresponding visual should be used when creating windows that will be drawn in by GdkRgb. Returns : The GdkColormap set by GdkRgb.
Determine whether the visual is ditherable. This function may be useful for presenting a user interface choice to the user about which dither mode is desired; if the display is not ditherable, it may make sense to gray out or hide the corresponding UI widget. Returns : TRUE if the visual is ditherable.
Sets the "verbose" flag. This is generally only useful for debugging. verbose : TRUE if verbose messages are desired. See Also GdkColor The underlying Gdk mechanism for allocating colors. Images Name Images -- an area for bit-mapped graphics stored on the X Windows client. Synopsis
Description The GdkImage type represents an area for drawing graphics. It has now been superceded to a large extent by the much more flexible GdkRGB functions. To create an empty GdkImage use gdk_image_new(). To create a GdkImage from bitmap data use gdk_image_new_bitmap(). To create an image from part of a GdkWindow use gdk_image_get(). The image can be manipulated with gdk_image_get_pixel() and gdk_image_put_pixel(), or alternatively by changing the actual pixel data. Though manipulating the pixel data requires complicated code to cope with the different formats that may be used. 上一篇:GTK v1.2 Tutorial(英文) 下一篇:Java入门(12) 事件与错误处理 更多相关文章
|
推荐文章
精彩文章
|