SoFunction
Updated on 2025-04-13

Summary of the usage of lineto functions in Yi Language

It is the usage of the lineto function and belongs to !

vb statement:

VB statement
Declare Function LineTo Lib "gdi32" Alias "LineTo" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long
illustrate
Use the current brush to draw a line and connect it to a specified point from the current position. After this function is called, the current position becomes x,y points
Return value
Long, non-zero means success, zero means failure
Parameter table
parameter Type and description
hdc Long, the handle of the device scene
x,y Long, the end point of the line segment is represented by logical coordinates. This point will not be actually drawn; it does not belong to a part of the line segment
annotation

If you repeatedly call this function and a geometric brush to create a series of line segments, then unless called in a path scene, these line segments are not considered to have been combined together.

Used in total:

  • getdc (get device scenario)
  • lineto (draw a straight line)
  • Two dll commands

The above are all the knowledge points of the usage of lineto function. Thank you for your support.