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

NameTypeAccessDescription
ShadingTypeShadingTypeReadGets the shading type.
X0doubleReadStart point X.
Y0doubleReadStart point Y.
X1doubleReadEnd point X.
Y1doubleReadEnd point Y.
Domaindouble[]ReadParameter range [t0, t1].
FunctionPdfFunction?ReadFunction mapping t → colour components.
Extendbool[]Read[extendBefore, extendAfter].
ColorSpaceNamestringReadColour space name for the shading’s output.
Backgrounddouble[]?ReadBackground colour components, or null if absent.
BBoxdouble[]?ReadBounding box [xmin, ymin, xmax, ymax], or null if absent.
AntiAliasboolReadWhether anti-aliasing is requested (advisory).

Methods

SignatureDescription
SampleAt(t: double)Sample the shading at parameter t ∈ [domain[0], domain[1]].

See Also