Accusoft ImagXpress 13
DrawPie Method
The left component (in pixels) of the top-left coordinate for the bounding rectangle.
The top component (in pixels) of the top-left coordinate for the bounding rectangle.
The right component (in pixels) of the bottom-right coordinate for the bounding rectangle.
The bottom component (in pixels) indicating the bottom-right coordinate for the bounding rectangle.
The starting angle (in degrees, 0-360) of the arc.
The ending angle (in degrees, 0-360) of the arc.

The RGB color of the circles outline. You can use the RGB function to specify the color.

Note: Value specified must be in a valid OLE_COLOR range.

Description
Draws a pie-shaped wedge onto the image.
Syntax
Visual Basic
Public Sub DrawPie( _
   ByVal x1 As Long, _
   ByVal y1 As Long, _
   ByVal x2 As Long, _
   ByVal y2 As Long, _
   ByVal StartAngle As Integer, _
   ByVal EndAngle As Integer, _
   ByVal Color As OLE_COLOR _
) 
Parameters
x1
The left component (in pixels) of the top-left coordinate for the bounding rectangle.
y1
The top component (in pixels) of the top-left coordinate for the bounding rectangle.
x2
The right component (in pixels) of the bottom-right coordinate for the bounding rectangle.
y2
The bottom component (in pixels) indicating the bottom-right coordinate for the bounding rectangle.
StartAngle
The starting angle (in degrees, 0-360) of the arc.
EndAngle
The ending angle (in degrees, 0-360) of the arc.
Color

The RGB color of the circles outline. You can use the RGB function to specify the color.

Note: Value specified must be in a valid OLE_COLOR range.

Remarks

Draws a pie-shaped wedge by drawing an elliptical arc whose center and two endpoints are joined by lines. The center of the arc is the center of the bounding rectangle specified by (x1, y1) and  (x2, y2). The starting and end points of the arc are determined by the StartAngle and EndAngle values. The arc is drawn in a counterclockwise direction.

To fill a pie, set the DrawFillColor and DrawFillStyle properties of the object on which the pie is drawn.

The width of the line used to draw the pie depends on the setting of the DrawWidth property. The way the pie is drawn on the background depends on the setting of the DrawMode and DrawStyle properties.

This method draws into the control's DIB.

See Also

ImagXpress Object  | ImagXpress Members  | DrawWidth Property  | DrawStyle Property  | DrawMode Property  | DrawFillStyle Property  | DrawFillStyle Property

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback