Ellipse drawing tool

Log-in or register.

Ellipse drawing tool

rsrc/ellipse-tool.png image ELLIPSE is a drawing tool capable of drawing filled ellipses and/or ellipse outlines. The ellipse can be rotated.

Ellipse configuration panel

rsrc/ellipse-tool-config.png image

If the Circle option is selected, the width and height of the drawn shape is kept the same.

How to use the Ellipse tool

Press the left mouse button over the canvas, move the mouse and release the button. A new ellipse is created and control handles appear. You can drag the handles to resize the ellipse or circle. The brown control handle can be used to rotate the ellipse.

In a vector layer, the ellipse can be converted to Shape and further refined by selecting Convert to Shape from the Object or the context menus.

Scripting parameters

ELLIPSE tool can be used from scripts. The command in script may have 4 to 6 parameters:

  • centerX, centerY - center of the drawn ellipse.
  • sizeX - width of the ellipse.
  • sizeY (optional) - height of the ellipse; if this argument is missing, sizeY defaults to sizeX resulting in a circle.
  • angle (optional) - clockwise rotation of the ellipse in radians (default is 0 radians).

Example

DrawTool.ELLIPSE(Document, 100, 100, 50, 30);

See also: DrawTool object, Document object

Recent comments

user icon Anonymous on May 7th 2012

and the thikness?

user icon Vlasta site administrator on May 7th 2012

outline width is set via the DrawTool object with its OutlineWitdth and ShapeFillMode properties

user icon Anonymous on February 24th

Hi. I found a way to draw a perfect oval any size by using the x and y axis method. example,(20 by 40 size oval)on the x axis 10 units and on the y axis 20 units. Use a 180 degree line with fixed centres, simultaneously following the x and y axis. At the end of the 180 degree line, 1/4 of the oval is traced on a plane surface. Continue each of the remanding quarters to complete the 20 x 40 oval. This oval making method I named "The Eye of Era". Adone :-) 8-)

user icon Anonymous
Vista & Win 7 icons
I wish there were...