Apitron.PDF.Kit library for .NET
SystemObject
Apitron.PDF.Kit.FixedLayout.ResourcesResource
Apitron.PDF.Kit.FixedLayout.Resources.ShadingsShading
Apitron.PDF.Kit.FixedLayout.Resources.ShadingsFunctionShading
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Top
Top
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
Apitron.PDF.Kit.FixedLayout.ResourcesResource
Apitron.PDF.Kit.FixedLayout.Resources.ShadingsShading
Apitron.PDF.Kit.FixedLayout.Resources.ShadingsFunctionShading
Namespace: Apitron.PDF.Kit.FixedLayout.Resources.Shadings
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Syntax
The FunctionShading type exposes the following members.
Constructors
Name | Description | |
---|---|---|
FunctionShading |
Initializes a new instance of the FunctionShading class.
|
Properties
Name | Description | |
---|---|---|
Background |
Gets the background.
(Inherited from Shading.) | |
Boundary |
Gets the boundary.
(Inherited from Shading.) | |
CanBeExported |
Gets a value indicating whether this instance can be exported.
(Inherited from Resource.) | |
ColorSpaceResourceID |
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.) | |
Domain |
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].
| |
FunctionIds |
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.
| |
Matrix |
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].
| |
ResourceType |
Gets the resource type.
(Inherited from Resource.) |
See Also