This method draws a pie shaped figure in the designated object (the screen, printer, or image data).
[TVIkOutPutDeviceMode Type]
Unit
IkInit
type
TVIkOutPutDeviceMode = (vikScreen,
vikPrinter, vikMemoryHandle);
Parameters
Name | Explanation |
---|---|
DeviceValue | The device context or the raster image data depending on the DeviceMode |
ALeft, ATop | The x, y coordinates of the top left corner of the area bounding the pie shape |
ARight, ABottom | The x, y coordinates of the bottom right corner of the area bounding the pie shape |
ARect | The x, y coordinates of the rectangle bounding the pie shape |
x1,y1 | x and y coordinates of the starting point of the pie shape |
x2,y2 | x and y coordinates of the ending point of the pie shape |
DeviceMode | If vikScreen, then the pie will be drawn in pixel units. If vikPrinter, the pie will be drawn in 0.1mm units. If vikMemoryHandle, the pie will be drawn (in pixel units) to the image memory handle |
Use either ALeft, ATop, ARight, ABottom or ARect.
Return Value
Returns True if successful. Returns False if unsuccessful.
Explanation
The Pie method draws a pie shaped figure in the designated object. This method draws part of an ellipse and two edges that extend from the ends of the arc to the center point of the bounding rectangle to complete the pie shape. (See the Arc method)
The outline of the pie shape is drawn from the value set in the PenStyle property and the pie shape is filled by the value set in the BrushStyle property. When drawing a pie shape, it is recommended that the PenWidth, PenMode, PenColor, BrushColor, Transparent, and 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 hatch pattern.
If the DeviceMode parameter is vikScreen or vikMemoryHandle then the ALeft, ATop, ARight, ABottom, x1, y1, x2, y2 parameters will be in pixel units.
If the DeviceMode parameter is vikPrinter then the ALeft, ATop, ARight, ABottom, x1, y1, x2, y2 parameters will be in 0.1mm units.
Differences between the ImageKit7/8/9
In VCL the constants contain a "v". In ActiveX, the constants
are: ikScreen, ikPrinter, ikMemoryHandle.
Methods that pass a TRect type have been added.