Drawing Simple Objects

You can draw a line, rectangle, or ellipse on the current bitmap or on the screen. Whether you draw to the bitmap or to the screen, drawing objects and text strings are always positioned in the LEAD control's client area. If the target is the bitmap, LEADTOOLS translates the values to bitmap coordinates.

Use the following property to specify whether to draw on the bitmap or the screen:

DrawPersistence property

Use the following properties to specify object styles and colors:

DrawMode property

DrawPenColor property

DrawPenStyle property

DrawPenWidth property

DrawFillColor property

DrawFillStyle property

Use the following methods to draw objects:

DrawLine method

DrawRectangle method

DrawEllipse method