NewTilingPatternFromCapturedPageA
矢量图形、颜色
描述
结尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅公开 Unicode 形式。其行为与 NewTilingPatternFromCapturedPage 相同,字符串参数按当前 SetAnsiMode 代码页解释
此函数将捕获的页面转换为平铺图案,并将该图案添加到当前文档
该图样可与 SetFillTilingPattern 函数配合使用,以设置后续绘制的矢量图形颜色
语法
Delphi
Function DLNewTilingPatternFromCapturedPageA(InstanceID: Integer; PatternName: PAnsiChar; CaptureID: Integer): Integer;
DLL
int DLNewTilingPatternFromCapturedPageA(int InstanceID, const char * PatternName, int CaptureID);
参数
| PatternName | 平铺图案的名称。应为仅包含字母数字字符且不含空白的简单字符串。该名称与 SetFillTilingPattern 函数配合使用 |
|---|---|
| CaptureID | 由 CapturePage 或 CapturePageEx 函数返回的 ID |
返回值
| 0 | 无法将捕获页面转换为平铺图案。CaptureID 参数可能无效,或者 PatternName 已被使用 |
|---|---|
| 1 | Success |