AddStampAnnotationFromImageID

註解與熱點連結

描述

依已加入文件中的 image ID,在所選頁面加入自訂印章註解。顏色參數值域為 0 到 1,0 代表 0%、1 代表 100%。顏色只影響彈出視窗的背景色,不影響印章本身

語法

Delphi

Function TPDFlib.AddStampAnnotationFromImageID(Left, Top, Width, Height: Double; ImageID: Integer; Const Title, Contents: WideString; Red, Green, Blue: Double; Options: Integer): Integer;

ActiveX

Function PDFlib::AddStampAnnotationFromImageID(Left As Double, Top As Double, Width As Double, Height As Double, ImageID As Long, Title As String, Contents As String, Red As Double, Green As Double, Blue As Double, Options As Long) As Long

DLL

int DLAddStampAnnotationFromImageID(int InstanceID, double Left, double Top, double Width, double Height, int ImageID, const wchar_t * Title, const wchar_t * Contents, double Red, double Green, double Blue, int Options);

參數

Left

印章註解左緣的水平座標

Top

印章註解上緣的垂直座標

Width

註解的寬度

Height

註解的高度

作為印章使用的影像 ID

ImageID

Title

快顯註解的標題

Contents

彈出式註解的內容

Red

彈出式註解背景顏色的紅色成分

Green

彈出式註解背景顏色的綠色成分

Blue

彈出式註解背景顏色的藍色成分

Options

保留供日後使用,應一律設為 0

傳回值

0無法把印章註解加到頁面
1Success