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 函式使用。
CaptureIDCapturePage 或 CapturePageEx 函式傳回的 ID。

傳回值

0無法把擷取頁面轉成平鋪圖樣。CaptureID 參數可能無效,或 PatternName 已被使用。
1Success