FunctionShading Class

Apitron PDF Kit help
Apitron.PDF.Kit library for .NET
This class represents a function based shading. In Type 1 (function-based) shadings, the colour at every point in the domain is defined by a specified mathematical function. The function need not be smooth or continuous. This type is the most general of the available shading types and is useful for shadings that cannot be adequately described with any of the other types. NOTE: This type of shading shall not be used with an Indexed colour space.
Inheritance Hierarchy


Namespace:  Apitron.PDF.Kit.FixedLayout.Resources.Shadings
Assembly:  Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: (

public class FunctionShading : Shading

The FunctionShading type exposes the following members.


Public methodFunctionShading
Initializes a new instance of the FunctionShading class.

Public propertyBackground
Gets the background.
(Inherited from Shading.)
Public propertyBoundary
Gets the boundary.
(Inherited from Shading.)
Public propertyCanBeExported
Gets a value indicating whether this instance can be exported.
(Inherited from Resource.)
Public propertyColorSpaceResourceID
Gets the colour space in which colour values shall be expressed. This may be any device, CIE-based, or special colour space except a Pattern space.
(Inherited from Shading.)
Public propertyDomain
An array of four numbers [xmin xmax ymin ymax] specifying the rectangular domain of coordinates over which the colour function(s) are defined. Default value: [0.0 1.0 0.0 1.0].
Public propertyFunctionIds
Gets a 2-in, n-out function or an array of n 2-in, 1-out functions (where n is the number of colour components in the shading dictionary’s colour space). Each function’s domain shall be a superset of that of the shading dictionary. If the value returned by the function for a given colour component is out of range, it shall be adjusted to the nearest valid value.
Public propertyMatrix
An array of six numbers specifying a transformation matrix mapping the coordinate space specified by the Domain entry into the shading’s target coordinate space.Default value: the identity matrix [1 0 0 1 0 0]. NOTE : To map the domain rectangle [0.0 1.0 0.0 1.0] to a 1-inch square with lower-left corner at coordinates (100, 100) in default user space, the Matrix value would be [72 0 0 72 100 100].
Public propertyResourceType
Gets the resource type.
(Inherited from Resource.)
See Also