Skip to content

PdfRadialGradientBrush class

View as Markdown

Namespace: PdfNetStack.Drawing
Assembly: PdfNetStack.dll
Package: PdfNetStack

A gradient between two circles, in canvas coordinates. With the same center and a start radius of 0 it is the usual circular gradient.

public sealed class PdfRadialGradientBrush : PdfGradientBrush

Inheritance

object ← PdfBrush ← PdfGradientBrush ← PdfRadialGradientBrush

PdfRadialGradientBrush(PdfPoint, double, PdfPoint, double, IEnumerable<PdfGradientStop>, bool)

Section titled “ PdfRadialGradientBrush(PdfPoint, double, PdfPoint, double, IEnumerable<PdfGradientStop>, bool)”

Creates a radial gradient between two circles.

public PdfRadialGradientBrush(PdfPoint startCenter, double startRadius, PdfPoint endCenter, double endRadius, IEnumerable<PdfGradientStop> stops, bool extend = true)

startCenter PdfPoint

startRadius double

endCenter PdfPoint

endRadius double

stops IEnumerable<PdfGradientStop>

extend bool

PdfRadialGradientBrush(PdfPoint, double, PdfColor, PdfColor)

Section titled “ PdfRadialGradientBrush(PdfPoint, double, PdfColor, PdfColor)”

Creates a circular gradient from center out to radius.

public PdfRadialGradientBrush(PdfPoint center, double radius, PdfColor centerColor, PdfColor edgeColor)

center PdfPoint

radius double

centerColor PdfColor

edgeColor PdfColor

Center of the circle at offset 1.

public PdfPoint EndCenter { get; }

PdfPoint

Radius of the circle at offset 1.

public double EndRadius { get; }

double

Center of the circle at offset 0.

public PdfPoint StartCenter { get; }

PdfPoint

Radius of the circle at offset 0.

public double StartRadius { get; }

double