DrawLine method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Visual J++ example

Syntax short DrawLine (float fX1, float fY1, float fX2, float fY2);

Overview:  Refer to Drawing Simple Objects.

Remarks

Draws a line on the screen or on the bitmap. The DrawPersistence property determines whether the object is drawn on the screen or the bitmap.

Whether you draw to the screen or to the bitmap, drawing objects are always positioned in the Main Control's client area. If the target is the bitmap, LEADTOOLS translates the values to bitmap coordinates.

See Also

Topics:  Working with the Control: Client Area Usage
Raster Images: Drawing on a Bitmap