TOC PREV NEXT INDEX

GDstate_set_draw_mode

Synopsis

set the drawing mode

void GDstate_set_draw_mode
(GDview *view, _int draw_mode)

Description

GDstate_set_draw_mode sets view 's draw_mode state.

draw_mode can be either of the following:

0 -- Sets the drawing mode to copy. Copy mode means that the drawing is made over the background. If the drawing is moved, the background must be refreshed with a pre-drawing copy of the background. You can specify the symbolic constant GD_PROPS_DRAW_COPY.

1 -- Sets the drawing mode to xor. xor mode means that the drawing is created (and the background subsequently refreshed) by performing an xor operation on the background. This mode is generally quicker, and you typically use it for interactive objects such as line drawings. You can specify the symbolic constant GD_PROPS_DRAW_XOR.


TOC PREV NEXT INDEX