Apitron.PDF.Kit library for .NET
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Initializes a new instance of the RadialShading class.
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
public RadialShading( string resourceId, string colorSpaceResourceId, Boundary boundary, double[] background, double[] coords, string[] functionResourceIds )
Parameters
- resourceId
- Type: SystemString
The resource id. - colorSpaceResourceId
- Type: SystemString
The color space resource ID. The colour space in which colour values shall beexpressed. This may be any device, CIE-based, or special colour space except a Pattern space. - boundary
- Type: Apitron.PDF.Kit.FixedLayoutBoundary
An array of four numbers giving the left, bottom, right, and top coordinates, respectively, of the shading’s bounding box. The coordinates shall be interpreted in the shading’s target coordinate space. If present, this bounding box shall be applied as a temporary clipping boundary when the shading is painted, in addition to the current clipping path and any other clipping boundaries in effect at that time. - background
- Type: SystemDouble
An array of colour components appropriate to the colour space, specifying a single background colour value. If present, this colour shall be used, before any painting operation involving the shading, to fill those portions of the area to be painted that lie outside the bounds of the shading object. - coords
- Type: SystemDouble
An array of six numbers [x0 y0 r0 x1 y1 r1] specifying the centres and radii of the starting and ending circles, expressed in the shading’s target coordinate space. The radii r0 and r1 shall both be greater than or equal to 0. If one radius is 0, the corresponding circle shall be treated as a point; if both are 0, nothing shall be painted. - functionResourceIds
- Type: SystemString
A 1-in, n-out function or an array of n 1-in, 1-out functions (where n is the number of colour components in the shading dictionary’s colour space). The function(s) shall be called with values of the parametric variable t in the domain defined by the shading dictionary’s Domain entry. 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.
See Also