This method draws an ellipse in the designated object (the screen, printer, or image data).

[Visual Basic]   [ Boolean = ]imagekitcontrolname.PrintDraw.Ellipse(DeviceValue As Long, left As Long, top As Long, right As Long, bottom As Long, DeviceMode As OutPutDeviceModeConstants)
[Visual C++]     [ BOOL = ]imagekitcontrolname.GetPrintDraw().Ellipse(long DeviceValue, long left, long top, long right, long bottom, long DeviceMode)

Parameters

Name Explanation
DeviceValue The device context or the raster image data (i.e. Hdc or ImageHandle) depending on the DeviceMode parameter
left,top The x, y coordinates of the top left corner of the rectangle
right,bottom The x, y coordinates of the bottom right corner of the rectangle
DeviceMode If 0 (ikScreen), then the output will be drawn in pixel units. If 1 (ikPrinter), the output will be drawn in 0.1mm units. If 2 (ikMemoryHandle), the output will be drawn (in pixel units) to the image data according to the DeviceValue parameter

In Visual Basic the following constants can be used: (ikScreen = 0, ikPrinter = 1, ikMemoryHandle = 2).

Return Value

Returns True (nonzero) if successful. Returns False (0) if unsuccessful.

Explanation

The Ellipse method draws an ellipse in the designated object (the screen, printer, or image data). The (left, top), and (right, bottom) parameters are coordinates for points that specify a bounding rectangle in which the ellipse is drawn. The outline of the ellipse is drawn from the value set in the PenStyle property and the ellipse is filled by the value set in the BrushStyle property (this method can draw in the following designated objects: screen, printer, and image data). When drawing an ellipse, it is recommended that the PenWidth, PenStyle, PenMode, PenColor, BrushStyle, BrushColor, Transparent, BackColor properties also be set. The BackColor property is enabled when the Transparent property is false and the pen is set to draw lines other than solid lines or the brush is set to draw hatch pattern.

If the DeviceMode parameter is 0 or 2 (the designated object is the screen or the image data) then the left, top, right, bottom parameters are in pixel units.

If the DeviceMode parameter is 1 (the designated object is the printer) then the left, top, right, bottom parameters are in 0.1mm units.

 

The ImageKit8 ActiveX is a product created by Newtone Corporation