GradientAxialShading
Overview
GradientAxialShading is a class in Aspose.PDF FOSS for .NET.
Inherits from: PatternColorSpace.
Defines a linear (axial) gradient between two colors for use as a fill pattern.
This class declares 3 methods for GradientAxialShading objects in .NET programs.
Available methods include: GradientAxialShading, PatternColorSpace.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: End, EndColor, Start, StartColor, Stops.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
StartColor | Aspose.Pdf.Color? | Read/Write | Start color of the gradient. |
EndColor | Aspose.Pdf.Color? | Read/Write | End color of the gradient. |
Start | Aspose.Pdf.Point | Read/Write | Start point of the gradient axis. |
End | Aspose.Pdf.Point | Read/Write | End point of the gradient axis. |
Stops | System.Collections.Generic.IList<Aspose.Pdf.Color> | Read | Colours the ramp passes through, evenly spaced along the axis. |
Methods
| Signature | Description |
|---|---|
GradientAxialShading() | Construct an empty gradient. |
GradientAxialShading(startColor: Aspose.Pdf.Color, endColor: Aspose.Pdf.Color) | Construct with start/end colours; endpoints default to (0,0)→(1,0). |
PatternColorSpace() | Creates a pattern colour-space marker. |