# PdfRadialGradientBrush class

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

Namespace: [PdfNetStack.Drawing](https://www.jadev-corp.com/api/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.

```csharp
public sealed class PdfRadialGradientBrush : PdfGradientBrush
```

**Inheritance**

[object](https://learn.microsoft.com/dotnet/api/system.object) ← 
[PdfBrush](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfbrush/) ← 
[PdfGradientBrush](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfgradientbrush/) ← 
[PdfRadialGradientBrush](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfradialgradientbrush/)

## Constructors

### <a id="PdfNetStack_Drawing_PdfRadialGradientBrush__ctor_PdfNetStack_Drawing_PdfPoint_System_Double_PdfNetStack_Drawing_PdfPoint_System_Double_System_Collections_Generic_IEnumerable_PdfNetStack_Drawing_PdfGradientStop__System_Boolean_"></a> PdfRadialGradientBrush\(PdfPoint, double, PdfPoint, double, IEnumerable&lt;PdfGradientStop\>, bool\)

Creates a radial gradient between two circles.

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

#### Parameters

`startCenter` [PdfPoint](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfpoint/)

`startRadius` [double](https://learn.microsoft.com/dotnet/api/system.double)

`endCenter` [PdfPoint](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfpoint/)

`endRadius` [double](https://learn.microsoft.com/dotnet/api/system.double)

`stops` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable\-1)<[PdfGradientStop](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfgradientstop/)\>

`extend` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="PdfNetStack_Drawing_PdfRadialGradientBrush__ctor_PdfNetStack_Drawing_PdfPoint_System_Double_PdfNetStack_Drawing_PdfColor_PdfNetStack_Drawing_PdfColor_"></a> PdfRadialGradientBrush\(PdfPoint, double, PdfColor, PdfColor\)

Creates a circular gradient from <code class="paramref">center</code> out to <code class="paramref">radius</code>.

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

#### Parameters

`center` [PdfPoint](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfpoint/)

`radius` [double](https://learn.microsoft.com/dotnet/api/system.double)

`centerColor` [PdfColor](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfcolor/)

`edgeColor` [PdfColor](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfcolor/)

## Properties

### <a id="PdfNetStack_Drawing_PdfRadialGradientBrush_EndCenter"></a> EndCenter

Center of the circle at offset 1.

```csharp
public PdfPoint EndCenter { get; }
```

#### Property Value

 [PdfPoint](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfpoint/)

### <a id="PdfNetStack_Drawing_PdfRadialGradientBrush_EndRadius"></a> EndRadius

Radius of the circle at offset 1.

```csharp
public double EndRadius { get; }
```

#### Property Value

 [double](https://learn.microsoft.com/dotnet/api/system.double)

### <a id="PdfNetStack_Drawing_PdfRadialGradientBrush_StartCenter"></a> StartCenter

Center of the circle at offset 0.

```csharp
public PdfPoint StartCenter { get; }
```

#### Property Value

 [PdfPoint](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfpoint/)

### <a id="PdfNetStack_Drawing_PdfRadialGradientBrush_StartRadius"></a> StartRadius

Radius of the circle at offset 0.

```csharp
public double StartRadius { get; }
```

#### Property Value

 [double](https://learn.microsoft.com/dotnet/api/system.double)

## Used in

- [Draw on PDF pages in C# and .NET](https://www.jadev-corp.com/guides/drawing/)

Source: https://www.jadev-corp.com/pdfnetstack/api/pdfnetstack-drawing/pdfradialgradientbrush/
