AxialShading
Overview
AxialShading is a class in Aspose.PDF FOSS for .NET.
Inherits from: ShadingBase.
Axial (linear) shading (Type 2, §8.7.4.3).
This class provides 1 method for working with AxialShading objects in .NET programs.
Available methods include: SampleAt.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: AntiAlias, BBox, Background, ColorSpaceName, Domain, Extend, and 6 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ShadingType | ShadingType | Read | Gets the shading type. |
X0 | double | Read | Start point X. |
Y0 | double | Read | Start point Y. |
X1 | double | Read | End point X. |
Y1 | double | Read | End point Y. |
Domain | double[] | Read | Parameter range [t0, t1]. |
Function | PdfFunction? | Read | Function mapping t → colour components. |
Extend | bool[] | Read | [extendBefore, extendAfter]. |
ColorSpaceName | string | Read | Colour space name for the shading’s output. |
Background | double[]? | Read | Background colour components, or null if absent. |
BBox | double[]? | Read | Bounding box [xmin, ymin, xmax, ymax], or null if absent. |
AntiAlias | bool | Read | Whether anti-aliasing is requested (advisory). |
Methods
| Signature | Description |
|---|---|
SampleAt(t: double) | Sample the shading at parameter t ∈ [domain[0], domain[1]]. |