SciChart.Drawing Assembly > System.Windows.Media.Imaging Namespace > WriteableBitmapExtensions Class > DrawEllipseCentered Method : DrawEllipseCentered(WriteableBitmap,Int32,Int32,Int32,Int32,Color) Method
The WriteableBitmap.
The x-coordinate of the ellipses center.
The y-coordinate of the ellipses center.
The radius of the ellipse in x-direction.
The radius of the ellipse in y-direction.
The color for the line.
DrawEllipseCentered(WriteableBitmap,Int32,Int32,Int32,Int32,Color) Method
A Fast Bresenham Type Algorithm For Drawing Ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf Uses a different parameter representation than DrawEllipse().
Syntax
[Extension()]
public static void DrawEllipseCentered( 
   WriteableBitmap bmp,
   int xc,
   int yc,
   int xr,
   int yr,
   Color color
)

Parameters

bmp
The WriteableBitmap.
xc
The x-coordinate of the ellipses center.
yc
The y-coordinate of the ellipses center.
xr
The radius of the ellipse in x-direction.
yr
The radius of the ellipse in y-direction.
color
The color for the line.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also