AddWatermarkAnnotationFromImageID
Annotations
Description
Adds a watermark annotation with a fixed-print storage matrix from an embedded image
Syntax
Delphi
Function AddWatermarkAnnotationFromImageID(Left, Top, Width, Height: Double; ImageID: Integer; ScaleX, ScaleY, OffsetX, OffsetY: Double; Const Title: WideString): Integer;Parameters
| Left, Top, Width, Height | Annotation rectangle |
|---|---|
| ImageID | Embedded image returned by AddImageFrom* |
| ScaleX, ScaleY | Horizontal and vertical fixed-print scale factors |
| OffsetX, OffsetY | Fixed-print translation offsets |
| Title | Optional annotation title |
Return value
1 when the annotation was added, 0 for an invalid image id
Remarks
The annotation carries a /FixedPrint /Matrix (ISO 32000-1 12.5.6.17) so printers scale the appearance with the page; the appearance is a form XObject painting the image
See also
AddStampAnnotationFromImageID, AddPrinterMarkAnnotationFromImageID