Draw an arc, circle or ellipse on the legend layer.

syntaxSyntax:
FWizLegend.DrawEllipse(center, sizex, mode=FWiz.SHAPEMODE_OUTLINE, sizey=0, startAngle=0, stopAngle=0, rotAngle=0, flags=DlxApp.ELLIPSE_CCW)

Parameters

Parameter Description
center A DlxPoint object with the coordinates specifying the center of the ellipse.
sizex A positive value that defines the radius of the circle or the half length of the horizontal axis of the ellipse.
mode A combination of the following values:
Value Meaning
FWiz.SHAPEMODE_OUTLINE Draw the outline of the ellipse.
FWiz.SHAPEMODE_FILLED Draw the fill of the ellipse.
sizey A positive value defining the half length of the vertical axis of the ellipse. If zero is specified, sizey is set equal to sizex.
startAngle The angle, in degrees, of the arc start.
stopAngle The angle, in degrees, of the end of the arc.
rotAngle The angle, in degrees, of rotation of the ellipse.
flags A combination of the following values:
Value Meaning
DlxApp.ELLIPSE_CW The arc is drawn clockwise.
DlxApp.ELLIPSE_CCW The arc is drawn counterclockwise.
DlxApp.ELLIPSE_EANGLE The startAngle and stopAngle values are referred to the ellipse otherwise they are referred to the circle.
DlxApp.ELLIPSE_CLOSED The arc is closed with segments in the center.
DlxApp.ELLIPSE_CHORD The arc is closed to the chord.

Return Value

If an error occurs it returns false otherwise it returns true.

Example

  Copy codeCopy code
var ctx = FWiz.GetLegendCtx();
ctx.DrawEllipse(new DlxPoint(40, 40), 20);
ctx.DrawEllipse(new DlxPoint(130, 80), 40, FWiz.SHAPEMODE_OUTLINE, 20);

See also