61#include <X11/Intrinsic.h>
64typedef struct _XlibRgbCmap XlibRgbCmap;
67 unsigned int colors[256];
68 unsigned char lut[256];
72xlib_rgb_init (Display *display, Screen *screen);
74xlib_rgb_init_with_depth (Display *display, Screen *screen, int prefDepth);
77xlib_rgb_xpixel_from_rgb ( unsigned int rgb);
80xlib_rgb_gc_set_foreground (GC gc, unsigned int rgb);
83xlib_rgb_gc_set_background (GC gc, unsigned int rgb);
88 XLIB_RGB_DITHER_NORMAL,
93xlib_draw_rgb_image (Drawable drawable,
100 unsigned char *rgb_buf,
104xlib_draw_rgb_image_dithalign (Drawable drawable,
111 unsigned char *rgb_buf,
117xlib_draw_rgb_32_image (Drawable drawable,
128xlib_draw_gray_image (Drawable drawable,
139xlib_rgb_cmap_new ( unsigned int *colors, int n_colors);
142xlib_rgb_cmap_free (XlibRgbCmap *cmap);
145xlib_draw_indexed_image (Drawable drawable,
159xlib_rgb_ditherable ( void);
162xlib_rgb_set_verbose (Bool verbose);
166xlib_rgb_set_install (Bool install);
169xlib_rgb_set_min_colors ( int min_colors);
172xlib_rgb_get_cmap ( void);
175xlib_rgb_get_visual ( void);
178xlib_rgb_get_visual_info ( void);
181xlib_rgb_get_depth ( void);
184xlib_rgb_get_display ( void);
187xlib_rgb_get_screen ( void);
|