LineTo
Edit discussion upload video
WINGDIAPI BOOL WINAPI LineTo(HDChdc,intX,intY,);
Use the current pen to draw a line from the current position to a specified point. After this function is called , the current position becomes x, y.
Used in conjunction with the MoveTo function, see the example for details.
Chinese name
LineTo
table of Contents
definition
edit
Use the current pen to draw a line from the current position to a specified point. After this function is called , the current position becomes x, y
WINGDIAPI BOOL WINAPI LineTo(HDChdc,intX,intY,);
Parameter Description
edit
hdc: device scene handle
X: X coordinate position of the end point of the line segment, expressed in logical coordinates. This point will not actually be drawn; it is not part of the line segment
Y: Y coordinate position of the end point of the line segment, expressed in logical coordinates. This point will not actually be drawn; it is not part of the line segment
return value:
Return TRUE for success, FALSE for failure
Example
edit
Header file: Gdi32.h
Use GDI drawing:
1 2 3 4 5 6 7 8 9 10 11 12 |
|