![]() |
#include <PatternColor.h>
Public Types | |
enum | Type { e_uncolored_tiling_pattern, e_colored_tiling_pattern, e_shading, e_null } |
enum | TilingType { e_constant_spacing, e_no_distortion, e_constant_spacing_fast_fill } |
Public Member Functions | |
PatternColor (SDF::Obj pattern) | |
Create a PatternColor from the given SDF/Cos object listed under Pattern entry in page Resource dictionary. | |
PatternColor (const PatternColor &) | |
PatternColor & | operator= (const PatternColor &) |
~PatternColor () | |
Type | GetType () const |
SDF::Obj | GetSDFObj () |
Common::Matrix2D | GetMatrix () |
Shading | GetShading () |
TilingType | GetTilingType () const |
Rect | GetBBox () |
double | GetXStep () |
double | GetYStep () |
Static Public Member Functions | |
static Type | GetType (SDF::Obj pattern) |
Patterns are specified in a special family of color spaces named Pattern, whose 'color values' are PatternColor objects instead of the numeric component values used with other spaces. Therefore PatternColor is to pattern color space what is ColorPt to all other color spaces.
A tiling pattern consists of a small graphical figure called a pattern cell. Painting with the pattern replicates the cell at fixed horizontal and vertical intervals to fill an area. The effect is as if the figure were painted on the surface of a clear glass tile, identical copies of which were then laid down in an array covering the area and trimmed to its boundaries. This is called tiling the area.
The pattern cell can include graphical elements such as filled areas, text, and sampled images. Its shape need not be rectangular, and the spacing of tiles can differ from the dimensions of the cell itself.
The order in which individual tiles (instances of the cell) are painted is unspecified and unpredictable; it is inadvisable for the figures on adjacent tiles to overlap.
pdftron::PDF::PatternColor::PatternColor | ( | SDF::Obj | pattern | ) |
Create a PatternColor from the given SDF/Cos object listed under Pattern entry in page Resource dictionary.
pdftron::PDF::PatternColor::PatternColor | ( | const PatternColor & | ) |
pdftron::PDF::PatternColor::~PatternColor | ( | ) |
PatternColor& pdftron::PDF::PatternColor::operator= | ( | const PatternColor & | ) |
Type pdftron::PDF::PatternColor::GetType | ( | ) | const |
SDF::Obj pdftron::PDF::PatternColor::GetSDFObj | ( | ) |
Common::Matrix2D pdftron::PDF::PatternColor::GetMatrix | ( | ) |
Shading pdftron::PDF::PatternColor::GetShading | ( | ) |
TilingType pdftron::PDF::PatternColor::GetTilingType | ( | ) | const |
Rect pdftron::PDF::PatternColor::GetBBox | ( | ) |
double pdftron::PDF::PatternColor::GetXStep | ( | ) |
for patterns other than Tiling this method throws an exception.
double pdftron::PDF::PatternColor::GetYStep | ( | ) |