#include <gdk/gdktypes.h>
Go to the source code of this file.
typedef struct _GdkRgbCmap GdkRgbCmap |
enum GdkRgbDither |
void gdk_draw_gray_image | ( | GdkDrawable * | drawable, | |
GdkGC * | gc, | |||
gint | x, | |||
gint | y, | |||
gint | width, | |||
gint | height, | |||
GdkRgbDither | dith, | |||
guchar * | buf, | |||
gint | rowstride | |||
) |
Definition at line 3698 of file gdkrgb.c.
References _GdkRgbInfo::bpp, gdk_draw_rgb_image_core(), GDK_RGB_DITHER_NONE, GDK_RGB_DITHER_NORMAL, gdk_rgb_make_gray_cmap(), GDK_VISUAL_GRAYSCALE, GDK_VISUAL_PSEUDO_COLOR, _GdkRgbInfo::gray_cmap, image_info, NULL, _GdkVisual::type, and _GdkRgbInfo::visual.
void gdk_draw_indexed_image | ( | GdkDrawable * | drawable, | |
GdkGC * | gc, | |||
gint | x, | |||
gint | y, | |||
gint | width, | |||
gint | height, | |||
GdkRgbDither | dith, | |||
guchar * | buf, | |||
gint | rowstride, | |||
GdkRgbCmap * | cmap | |||
) |
Definition at line 3754 of file gdkrgb.c.
References _GdkRgbInfo::conv_indexed, _GdkRgbInfo::conv_indexed_d, _GdkRgbInfo::dith_default, gdk_draw_rgb_image_core(), GDK_RGB_DITHER_NONE, GDK_RGB_DITHER_NORMAL, and image_info.
void gdk_draw_rgb_32_image | ( | GdkDrawable * | drawable, | |
GdkGC * | gc, | |||
gint | x, | |||
gint | y, | |||
gint | width, | |||
gint | height, | |||
GdkRgbDither | dith, | |||
guchar * | buf, | |||
gint | rowstride | |||
) |
Definition at line 3668 of file gdkrgb.c.
References _GdkRgbInfo::conv_32, _GdkRgbInfo::conv_32_d, _GdkRgbInfo::dith_default, gdk_draw_rgb_image_core(), GDK_RGB_DITHER_NONE, GDK_RGB_DITHER_NORMAL, image_info, and NULL.
void gdk_draw_rgb_image | ( | GdkDrawable * | drawable, | |
GdkGC * | gc, | |||
gint | x, | |||
gint | y, | |||
gint | width, | |||
gint | height, | |||
GdkRgbDither | dith, | |||
guchar * | rgb_buf, | |||
gint | rowstride | |||
) |
Definition at line 3626 of file gdkrgb.c.
References _GdkRgbInfo::conv, _GdkRgbInfo::conv_d, _GdkRgbInfo::dith_default, gdk_draw_rgb_image_core(), GDK_RGB_DITHER_NONE, GDK_RGB_DITHER_NORMAL, image_info, and NULL.
void gdk_draw_rgb_image_dithalign | ( | GdkDrawable * | drawable, | |
GdkGC * | gc, | |||
gint | x, | |||
gint | y, | |||
gint | width, | |||
gint | height, | |||
GdkRgbDither | dith, | |||
guchar * | rgb_buf, | |||
gint | rowstride, | |||
gint | xdith, | |||
gint | ydith | |||
) |
Definition at line 3646 of file gdkrgb.c.
References _GdkRgbInfo::conv, _GdkRgbInfo::conv_d, _GdkRgbInfo::dith_default, gdk_draw_rgb_image_core(), GDK_RGB_DITHER_NONE, GDK_RGB_DITHER_NORMAL, image_info, and NULL.
void gdk_rgb_cmap_free | ( | GdkRgbCmap * | cmap | ) |
GdkRgbCmap* gdk_rgb_cmap_new | ( | guint32 * | colors, | |
gint | n_colors | |||
) |
Definition at line 3723 of file gdkrgb.c.
References _GdkRgbInfo::bpp, colorcube, _GdkRgbCmap::colors, g_new, g_print(), g_return_val_if_fail, GDK_VISUAL_GRAYSCALE, GDK_VISUAL_PSEUDO_COLOR, i, image_info, j, _GdkRgbCmap::lut, NULL, _GdkVisual::type, and _GdkRgbInfo::visual.
Referenced by gdk_rgb_make_gray_cmap().
gboolean gdk_rgb_ditherable | ( | void | ) |
Definition at line 3774 of file gdkrgb.c.
References _GdkRgbInfo::conv, _GdkRgbInfo::conv_d, and image_info.
Definition at line 687 of file gdkrgb.c.
References gdk_gc_set_background(), and gdk_rgb_xpixel_from_rgb().
Definition at line 679 of file gdkrgb.c.
References gdk_gc_set_foreground(), and gdk_rgb_xpixel_from_rgb().
GdkColormap* gdk_rgb_get_cmap | ( | void | ) |
Definition at line 3779 of file gdkrgb.c.
References _GdkRgbInfo::cmap, gdk_rgb_init(), and image_info.
GdkVisual* gdk_rgb_get_visual | ( | void | ) |
Definition at line 3785 of file gdkrgb.c.
References gdk_rgb_init(), image_info, and _GdkRgbInfo::visual.
void gdk_rgb_init | ( | void | ) |
Definition at line 524 of file gdkrgb.c.
References _GdkRgbInfo::bitmap, _GdkRgbInfo::bpp, _GdkImage::bpp, _GdkRgbInfo::cmap, _GdkRgbInfo::cmap_alloced, _GdkRgbInfo::color_pixels, _GdkVisual::depth, FALSE, g_error(), g_new0, g_print(), _GdkRgbInfo::gamma, gdk_colormap_get_system(), gdk_colormap_new(), GDK_IMAGE_FASTEST, gdk_image_new(), gdk_image_new_bitmap(), gdk_rgb_choose_visual(), gdk_rgb_colorcube_222(), gdk_rgb_do_colormaps(), gdk_rgb_install_cmap, gdk_rgb_select_conv(), gdk_rgb_set_gray_cmap(), gdk_rgb_verbose, GDK_VISUAL_DIRECT_COLOR, gdk_visual_get_system(), GDK_VISUAL_GRAYSCALE, GDK_VISUAL_PSEUDO_COLOR, GDK_VISUAL_STATIC_COLOR, _GdkRgbInfo::gray_pixels, i, IMAGE_HEIGHT, image_info, IMAGE_WIDTH, malloc(), N_IMAGES, _GdkRgbInfo::nblue_shades, _GdkRgbInfo::ngray_shades, _GdkRgbInfo::ngreen_shades, _GdkRgbInfo::nred_shades, _GdkRgbInfo::nreserved, NULL, _GdkRgbInfo::own_gc, _GdkRgbInfo::reserved_pixels, _GdkRgbInfo::stage_buf, static_image, TRUE, _GdkVisual::type, and _GdkRgbInfo::visual.
Referenced by gdk_rgb_get_cmap(), and gdk_rgb_get_visual().
void gdk_rgb_set_install | ( | gboolean | install | ) |
void gdk_rgb_set_min_colors | ( | gint | min_colors | ) |
void gdk_rgb_set_verbose | ( | gboolean | verbose | ) |
Definition at line 633 of file gdkrgb.c.
References _GdkRgbInfo::bitmap, _GdkVisual::blue_prec, _GdkVisual::blue_shift, colorcube, colorcube_d, _GdkVisual::depth, g_print(), GDK_VISUAL_DIRECT_COLOR, GDK_VISUAL_GRAYSCALE, GDK_VISUAL_PSEUDO_COLOR, GDK_VISUAL_STATIC_COLOR, GDK_VISUAL_STATIC_GRAY, GDK_VISUAL_TRUE_COLOR, _GdkVisual::green_prec, _GdkVisual::green_shift, image_info, _GdkVisual::red_prec, _GdkVisual::red_shift, _GdkVisual::type, and _GdkRgbInfo::visual.
Referenced by gdk_rgb_gc_set_background(), and gdk_rgb_gc_set_foreground().