Pie Method

Structured Graphics Control

Creates a single elliptical arc filled with the current color set in the SetFillColor method, resulting in a wedge-shaped (pie) figure.

The center of the pie shape is the center of a rectangle whose origin is (x, y) and whose size is specified by the width and height arguments. The two axes of the arc are given by the width and height arguments. The arc is drawn from startAngle to startAngle + arcAngle.

Syntax

HTML<PARAM NAME="Line0001" VALUE="Pie( x, y, width, height, startAngle, arcAngle, rotation )">
ScriptingSGObj.Pie( x, y, width, height, startAngle, arcAngle, rotation )
FilePie( x, y, width, height, startAngle, arcAngle, rotation )

Parameters

x
The x-coordinate.
y
The y-coordinate.
width
Width of the rectangle.
height
Height of the rectangle.
startAngle
Beginning angle, in degrees.
arcAngle
Angle of the arc, relative to startAngle, in degrees.
rotation
Degree of rotation from the 0 degrees position.

Example

The following example draws a 22-degree pie shape.

<PARAM NAME="Line0004" VALUE="Pie(-75,-75, 150,150, 15,22, 0)"">

Right-click inside the frame and choose View Source to see the HTML code for the Pie method example.


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.