beautypg.com

Gellipse xl yt xr yb, Gmoveto x y, Glineto x y – Sensoray 2224 Windows User Manual

Page 90: Text, Gtextcolor r g b

background image

gellipse xL yT xR yB

This is a simple wrapper function for the Windows Ellipse () function.

Arguments:

xL = Horizontal coordinate for the top left pixel of text in device context / bitmap

yT = Vertical coordinate for the top left pixel of text in device context / bitmap

xR = Horizontal coordinate for the bottom right pixel of text in device context / bitmap plus one.

YB = Vertical coordinate for the bottom right pixel of text in device context / bitmap plus one.

gmoveto x y

This is a simple wrapper function for the Windows MoveToEx () function. Moves a virtual cursor without
drawing anything.

Arguments:

x = Horizontal coordinate for the starting pixel in device context / bitmap

y = Vertical coordinate for the starting pixel in device context / bitmap

glineto x y

This is a simple wrapper function for the Windows LineTo () function. Draws a line from the current virtual
cursor position to the given coordinate.

Arguments:

x = Horizontal coordinate for the end point of a line in device context / bitmap

y = Vertical coordinate for the end point of a line in device context / bitmap

Text

gtextcolor r g b

This is a simple wrapper function for the Windows SetTextColor () function. It also sets a global default
value for subsequent calls to gopen.

Valid values for the color are:

r = red. Valid values are 0-255.

g = green. Valid values are 0-255.

b = blue. Valid values are 0-255.

90

This manual is related to the following products: