ImageDrawOval

Draws an oval.

ImageDrawOval( image, x, y, width, height [, filled ] )

Returns: void

Argument Description
image
any, required

The image on which this operation is performed.

Alias: name

x
number, required

The x coordinate of the upper left corner of the oval to draw.

y
number, required

The y coordinate of the upper left corner of the oval to draw.

width
number, required

The width of the oval to draw.

height
number, required

The height of the oval to draw.

filled
boolean, optional

Specify whether the oval is filled:

  • true: The oval is filled with the specified drawing color.
  • false (default): Only the outline of the oval is drawn.

Examples

img=imageNew("",200,200,"RGB","e55039");
imageDrawOval(img,60,50,50,100,"no");
cfimage(action="writeToBrowser",source=img);

See also