Accusoft PrintPRO 8
DrawPie Method
Single-precision values indicating the upper-left x coordinate for the bounding rectangle.
Single-precision values indicating the upper-left y coordinate for the bounding rectangle.
Single-precision value indicating the lower-right x coordinate for the bounding rectangle.
Single-precision value indicating the lower-right y coordinate for the bounding rectangle.
Single-precision floating-point value (in degrees, 0-360) that specifies the starting angle of the arc.
Single-precision floating-point value (in degrees, 0-360) that specifies the end angle of the arc.
Long integer value indicating the RGB color of the circle’s outline. You can use the RGB function or QBColor function to specify the color.
Description

Creates a pie-shaped wedge on a document to be printed.

Syntax
Visual Basic
Public Sub DrawPie( _
   ByVal X1 As Single, _
   ByVal Y1 As Single, _
   ByVal X2 As Single, _
   ByVal Y2 As Single, _
   ByVal StartAngle As Single, _
   ByVal EndAngle As Single, _
   ByVal penColor As OLE_COLOR _
) 
Parameters
X1
Single-precision values indicating the upper-left x coordinate for the bounding rectangle.
Y1
Single-precision values indicating the upper-left y coordinate for the bounding rectangle.
X2
Single-precision value indicating the lower-right x coordinate for the bounding rectangle.
Y2
Single-precision value indicating the lower-right y coordinate for the bounding rectangle.
StartAngle
Single-precision floating-point value (in degrees, 0-360) that specifies the starting angle of the arc.
EndAngle
Single-precision floating-point value (in degrees, 0-360) that specifies the end angle of the arc.
penColor
Long integer value indicating the RGB color of the circle’s outline. You can use the RGB function or QBColor function to specify the color.
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, x2 and y2. The starting and end points of the arc are determined by the StartAngle and EndAngle values.

The coordinates of the pie must be within the physical area of the printed page. The arc is drawn in a counterclockwise direction.

To fill a pie, set the FillColor and FillStyle 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.

If a printer has not been selected or a document has not been started, the DrawPie method will select the default printer and start a new document.

You can omit an argument in the middle of the syntax, but you must include the argument’s comma before including the next argument. If you omit an optional argument, omit the comma following the last argument you specify.

When DrawPie executes, the CurrentX and CurrentY properties are set to X2 and Y2.

See Also

PrintPro Object  | PrintPro Members

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback