DynaPDF Manual - Page 320

Previous Page 319   Index   Next Page 321

Function Reference
Page 320 of 860
The function creates a colored tiling pattern. See BeginPattern() for further information.
A pattern can be used like a color, it is not required to save the graphics state before applying a
pattern. A pattern remains active until the corresponding color is changed with SetFillColor() or
SetStrokeColor().
Remarks:
Patterns are invisible as long as they are not applied by the function ApplyPattern().
Return values:
If the function succeeds the return value is the pattern handle, a value greater or equal zero. If the
function fails the return value is a negative error code.
Example (C):
// First we declare an error callback function.
SI32 PDF_CALL PDFError(const void* Data, SI32 ErrCode, const char*
ErrMessage, SI32 ErrType)
{
printf("%s\n", ErrMessage);
return 0;
}
 

Previous topic: CreateStdPattern

Next topic: CreateStructureTree