1 / 5

Color and the Graphics Context

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;

alden
Télécharger la présentation

Color and the Graphics Context

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Color and the Graphics Context

  2. Color Displays • Display Architectures • Pseudo Color • Direct Color • Gray Scale • Static Color • True Color • Static Gray

  3. 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; };

  4. 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

  5. GdkColor struct _GdkColor { gulong pixel; gushort red; gushort green; gushort blue; }; gdk_gc_set_foreground(gc, &color);

More Related