NewTilingPatternFromCapturedPage

Vector graphics, Color

Description

This function converts a captured page into a tiling pattern and adds the pattern to the current document.

The pattern can be used with the SetFillTilingPattern function to set the color of subsequently drawn vector graphics.

Syntax

Delphi

function TPDFlib.NewTilingPatternFromCapturedPage(Const PatternName: WideString; CaptureID: Integer): Integer;

ActiveX

Function PDFlib::NewTilingPatternFromCapturedPage(PatternName As String, CaptureID As Long) As Long

DLL

int DLNewTilingPatternFromCapturedPage(int InstanceID, wchar_t * PatternName, int CaptureID);

Parameters

PatternNameThe name of the tiling pattern. Should be a simple string consisting of alphanumeric characters and no whitespace. This name is used with the SetFillTilingPattern function.
CaptureIDThe ID returned by the CapturePage or CapturePageEx functions.

Return values

0The captured page could not be converted into a tiling pattern. The CaptureID parameter might be invalid or the PatternName has already been used.
1Success