AddStampAnnotationFromImageID
注释和热点链接
描述
根据已添加到文档的图像 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
弹出注释's 背景颜色的绿色分量
Blue
弹出注释's 背景颜色的蓝色分量
Options
保留供将来使用,应始终设为 0
返回值
| 0 | 无法将图章注释添加到页面 |
|---|---|
| 1 | Success |