Ellipse(X1,Y1,X2,Y2)

Draws a circle or ellipse.

Specify the bounding rectangle by giving the top left point at pixel coordinates (X1, Y1) and the bottom right point at (X2, Y2). If the bounding rectangle is a square, a circle is drawn. The ellipse is drawn using the current pen width and color.

Parameters
  • X1. Integer.
  • Y1. Integer.
  • X2. Integer.
  • Y2. Integer.
Examples
Copy
Graphic = CRM.GetBlock("graphic");
Graphic.ImageWidth = 70;
Graphic.ImageHeight = 50;
Graphic.Effect('ChangeColor','White,Red');
Graphic.Ellipse(10,10,50,50);
CRM.AddContent(Graphic.execute());
Response.Write(CRM.GetPage());