Click or drag to resize

ShadingGetBackground Method

An color point represented in base color space specifying a single background color value. If present, this color is 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 itself. In the opaque imaging model, the effect is as if the painting operation were performed twice: first with the background color and then again with the shading.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public ColorPt GetBackground()

Return Value

Type: ColorPt
the background color point
Remarks
The background color is applied only when the shading is used as part of a shading pattern, not when it is painted directly with the sh operator. Use HasBackground() method to determine whether the shading has a background color.
See Also