Table of Contents

Method FillEllipse

Namespace
LMKit.Graphics.Drawing
Assembly
LM-Kit.NET.dll

FillEllipse(Ellipse, Color32)

Fills the interior of the specified ellipse with a solid color.

public Canvas FillEllipse(Ellipse ellipse, Color32 color)

Parameters

ellipse Ellipse

The ellipse to fill.

color Color32

The fill color.

Returns

Canvas

This Canvas instance for fluent chaining.

Examples

var canvas = new Canvas(image);
canvas.FillEllipse(
    Ellipse.Circle(100, 100, 50),
    new Color32(0, 120, 215));

Exceptions

ArgumentNullException

Thrown if ellipse is null.

FillEllipse(Ellipse, Brush)

Fills the interior of the specified ellipse using the given brush.

public Canvas FillEllipse(Ellipse ellipse, Brush brush)

Parameters

ellipse Ellipse

The ellipse to fill.

brush Brush

The brush that defines the fill color.

Returns

Canvas

This Canvas instance for fluent chaining.

Examples

var brush = new Brush(new Color32(0, 120, 215));
var canvas = new Canvas(image);
canvas.FillEllipse(Ellipse.FromCenter(200, 150, 80, 50), brush);

Exceptions

ArgumentNullException

Thrown if ellipse or brush is null.