PdfRadialGradientBrush class
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 : PdfGradientBrushInheritance
object ← PdfBrush ← PdfGradientBrush ← PdfRadialGradientBrush
Constructors
Section titled “Constructors”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)Parameters
Section titled “Parameters”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)Parameters
Section titled “Parameters”center PdfPoint
radius double
centerColor PdfColor
edgeColor PdfColor
Properties
Section titled “Properties”EndCenter
Section titled “ EndCenter”Center of the circle at offset 1.
public PdfPoint EndCenter { get; }Property Value
Section titled “Property Value”EndRadius
Section titled “ EndRadius”Radius of the circle at offset 1.
public double EndRadius { get; }Property Value
Section titled “Property Value”StartCenter
Section titled “ StartCenter”Center of the circle at offset 0.
public PdfPoint StartCenter { get; }Property Value
Section titled “Property Value”StartRadius
Section titled “ StartRadius”Radius of the circle at offset 0.
public double StartRadius { get; }