NewTilingPatternFromCapturedPage
矢量图形、颜色
描述
此函数将捕获的页面转换为平铺图案,并将该图案添加到当前文档
该图样可与 SetFillTilingPattern 函数配合使用,以设置后续绘制的矢量图形颜色
语法
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, const wchar_t * PatternName, int CaptureID);
参数
| PatternName | 平铺图案的名称。应为仅包含字母数字字符且不含空白的简单字符串。该名称与 SetFillTilingPattern 函数配合使用 |
|---|---|
| CaptureID | 由 CapturePage 或 CapturePageEx 函数返回的 ID |
返回值
| 0 | 无法将捕获页面转换为平铺图案。CaptureID 参数可能无效,或者 PatternName 已被使用 |
|---|---|
| 1 | Success |