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: AltSpaceName, AntiAlias, BBox, Background, ColorSpaceName, Domain, and 8 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.
TintTransformPdfFunction?ReadTint-transform function for a /Separation or /DeviceN output colour space, or null for a device colour space.
AltSpaceNamestring?ReadAlternate colour-space family (“DeviceRGB”/“DeviceCMYK”/“DeviceGray”/“Lab”) that TintTransform produces, or null.
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

 English