![]() | PdfiumFPDFTiling |
public static IntPtr FPDFTilingPattern_Create( IntPtr document, bool bColored, TilingType tilingType, FS_RECTF bbox, float xStep, float yStep, FS_MATRIX parentMatrix = null, FS_MATRIX formMatrix = null )
Public Shared Function FPDFTilingPattern_Create ( document As IntPtr, bColored As Boolean, tilingType As TilingType, bbox As FS_RECTF, xStep As Single, yStep As Single, Optional parentMatrix As FS_MATRIX = Nothing, Optional formMatrix As FS_MATRIX = Nothing ) As IntPtr
public: static IntPtr FPDFTilingPattern_Create( IntPtr document, bool bColored, TilingType tilingType, FS_RECTF bbox, float xStep, float yStep, FS_MATRIX^ parentMatrix = nullptr, FS_MATRIX^ formMatrix = nullptr )
static member FPDFTilingPattern_Create : document : IntPtr * bColored : bool * tilingType : TilingType * bbox : FS_RECTF * xStep : float32 * yStep : float32 * ?parentMatrix : FS_MATRIX * ?formMatrix : FS_MATRIX (* Defaults: let _parentMatrix = defaultArg parentMatrix null let _formMatrix = defaultArg formMatrix null *) -> IntPtr
public static IntPtr FPDFTilingPattern_Create( IntPtr document, boolean bColored, TilingType tilingType, FS_RECTF bbox, float xStep, float yStep, FS_MATRIX parentMatrix = null, FS_MATRIX formMatrix = null )
Patagames.Pdf.Pdfium.FPDFTilingPattern_Create = function(document, bColored, tilingType, bbox, xStep, yStep, parentMatrix, formMatrix);
Colored tiling pattern. The pattern's content stream specifies the colors used to paint the pattern cell. When the content stream begins execution, the current color is the one that was initially in effect in the pattern's parent content stream.
Uncolored tiling pattern. The pattern’s content stream does not specify any color information. Instead, the entire pattern cell is painted with a separately specified color each time the pattern is used. Essentially, the content stream describes a stencil through which the current color is to be poured. The content stream must not invoke operators that specify colors or other color-related parameters in the graphics state; otherwise, an error occurs. The content stream may paint an image mask, however, since it does not specify any color information.
Note that xStep and yStep may differ from the dimensions of the pattern cell implied by the bbox parameter. This allows tiling with irregularly shaped figures. xStep and yStep may be either positive or negative but not zero.
A pattern’s appearance is described with respect to its own internal coordinate system. Every pattern has a formMatrix, a transformation matrix that maps the pattern’s internal coordinate system to the default coordinate system of the pattern's parent content stream (the content stream in which the pattern is defined as a resource). The concatenation of the formMatrix with that of the parent content stream establishes the pattern coordinate space, within which all graphics objects in the pattern are interpreted.