Graphics, Gpen t w r g b, Gbrush r g b – Sensoray 2224 Windows User Manual
Page 87

Graphics
gpen t w r g b
This is a simple wrapper function for the Windows CreatePen () function. It also sets a global default
values for subsequent calls to gopen to set the new device context/bitmap with the same pen.
T = type. Valid values are 0-6.
PS_SOLID 0
PS_DASH 1 /* ------- */
PS_DOT 2 /* ....... */
PS_DASHDOT 3 /* _._._._ */
PS_DASHDOTDOT 4 /* _.._.._ */
PS_NULL 5
PS_INSIDEFRAME 6
w = width.
r = red. Valid values are 0-255.
g = green. Valid values are 0-255.
b = blue. Valid values are 0-255.
gbrush r g b
This is a simple wrapper function for the Windows CreateSolidBrush () function. It also sets a global
default value for subsequent calls to gopen.
It creates a solid brush with color:
r = red. Valid values are 0-255.
g = green. Valid values are 0-255.
b = blue. Valid values are 0-255.
87