50 likes | 276 Views
Color and the Graphics Context. Color Displays. Display Architectures Pseudo Color Direct Color Gray Scale Static Color True Color Static Gray. struct _GdkGCValues { GdkColor foreground; GdkColor background; GdkFont *font;
E N D
Color Displays • Display Architectures • Pseudo Color • Direct Color • Gray Scale • Static Color • True Color • Static Gray
struct _GdkGCValues { GdkColor foreground; GdkColor background; GdkFont *font; GdkFunction function; GdkFill fill; GdkPixmap *tile; GdkPixmap *stipple; GdkPixmap *clip_mask; GdkSubwindowMode subwindow_mode; gint ts_x_origin, ts_y_origin; gint clip_x_origin, clip_y_origin; gint graphics_exposures; gint line_width; GdkLineStyle line_style; GdkCapStyle cap_style; GdkJoinStyle join_style; };
Table 11-2: Writing Pixels GDK_COPY GDK_INVERT GDK_XOR GDK_CLEAR GDK_AND GDK_AND_REVERSE GDK_AND_INVERT GDK_NOOP GDK_OR GDK_EQUIV GDK_OR_REVERSE GDK_COPY_INVERT GDK_OR_INVERT GDK_NAND GDK_SET
GdkColor struct _GdkColor { gulong pixel; gushort red; gushort green; gushort blue; }; gdk_gc_set_foreground(gc, &color);