Comprehensive Guide for Developers: Features, Integration, and API Reference
Represents a shading or tiling pattern in a PDF document. More...
#include <pdfsdk/cxx/pattern.h>
Public Member Functions | |
Object | GetPdfObject () const |
PDEPatternType | GetPatternType () const |
Gets the type of the pattern. | |
Matrix | GetMatrix () const |
Gets the transformation matrix of the pattern. | |
void | SetMatrix (const Matrix &matrix) |
Sets the transformation matrix of the pattern. | |
PDETilingPatternPaintType | GetTilingPaintType () const |
Gets the paint type of the tiling pattern. | |
void | SetTilingPaintType (PDETilingPatternPaintType paintType) |
Sets the paint type of the tiling pattern. | |
PDETilingPatternTilingType | GetTilingType () const |
Gets the tiling type of the tiling pattern. | |
void | SetTilingType (PDETilingPatternTilingType tilingType) |
Sets the tiling type of the tiling pattern. | |
PDRectF | GetTilingBBox () const |
Gets the bounding box of the tiling pattern. | |
void | SetTilingBBox (const PDRectF &bbox) |
Sets the bounding box of the tiling pattern. | |
float | GetTilingXStep () const |
Gets the horizontal step of the tiling pattern. | |
void | SetTilingXStep (float xstep) |
Sets the horizontal step of the tiling pattern. | |
float | GetTilingYStep () const |
Gets the vertical step of the tiling pattern. | |
void | SetTilingYStep (float ystep) |
Sets the vertical step of the tiling pattern. | |
Content | GetTilingContent () const |
Gets the content of the tiling pattern. | |
Shading | GetShading () const |
Gets the shading of the pattern. | |
void | SetShading (const Shading &shading) |
Sets the shading of the pattern. | |
GState | GetShadingExtGState () const |
Gets the extended graphics state of the shading. | |
void | SetShadingExtGState (const GState &extGState) |
Sets the extended graphics state of the shading. | |
Pattern (PDEPattern handle, bool adopt=false) noexcept | |
Pattern (const Pattern &rhs) noexcept | |
Pattern & | operator= (const Pattern &rhs) noexcept |
Pattern (Pattern &&rhs) noexcept | |
Pattern & | operator= (Pattern &&rhs) noexcept |
Static Public Member Functions | |
static Pattern | CreateFromPdfObject (const Object &object) |
Represents a shading or tiling pattern in a PDF document.
ISO 32000-2:2020 - 8.7 Patterns
Creates a pattern from the specified PDF object.
object | The PDF object. |
Matrix PDF::Pattern::GetMatrix | ( | ) | const |
Gets the transformation matrix of the pattern.
PDEPatternType PDF::Pattern::GetPatternType | ( | ) | const |
Gets the type of the pattern.
Object PDF::Pattern::GetPdfObject | ( | ) | const |
Get the PDF object associated with this pattern.
Shading PDF::Pattern::GetShading | ( | ) | const |
Gets the shading of the pattern.
GState PDF::Pattern::GetShadingExtGState | ( | ) | const |
Gets the extended graphics state of the shading.
PDRectF PDF::Pattern::GetTilingBBox | ( | ) | const |
Gets the bounding box of the tiling pattern.
Content PDF::Pattern::GetTilingContent | ( | ) | const |
Gets the content of the tiling pattern.
PDETilingPatternPaintType PDF::Pattern::GetTilingPaintType | ( | ) | const |
Gets the paint type of the tiling pattern.
PDETilingPatternTilingType PDF::Pattern::GetTilingType | ( | ) | const |
Gets the tiling type of the tiling pattern.
float PDF::Pattern::GetTilingXStep | ( | ) | const |
Gets the horizontal step of the tiling pattern.
float PDF::Pattern::GetTilingYStep | ( | ) | const |
Gets the vertical step of the tiling pattern.
void PDF::Pattern::SetMatrix | ( | const Matrix & | matrix | ) |
Sets the transformation matrix of the pattern.
matrix | The transformation matrix to set. |
void PDF::Pattern::SetShading | ( | const Shading & | shading | ) |
Sets the shading of the pattern.
shading | The shading to set. |
void PDF::Pattern::SetShadingExtGState | ( | const GState & | extGState | ) |
Sets the extended graphics state of the shading.
extGState | The extended graphics state to set. |
void PDF::Pattern::SetTilingBBox | ( | const PDRectF & | bbox | ) |
Sets the bounding box of the tiling pattern.
bbox | The bounding box to set. |
void PDF::Pattern::SetTilingPaintType | ( | PDETilingPatternPaintType | paintType | ) |
Sets the paint type of the tiling pattern.
paintType | The paint type to set. |
void PDF::Pattern::SetTilingType | ( | PDETilingPatternTilingType | tilingType | ) |
Sets the tiling type of the tiling pattern.
tilingType | The tiling type to set. |
void PDF::Pattern::SetTilingXStep | ( | float | xstep | ) |
Sets the horizontal step of the tiling pattern.
xstep | The horizontal step to set. |
void PDF::Pattern::SetTilingYStep | ( | float | ystep | ) |
Sets the vertical step of the tiling pattern.
ystep | The vertical step to set. |