HotPDF Developer Reference
Delphi and C++Builder PDF component help
|
THotPDF.AddImage
|
Top Previous Next |
|
Adds a specified image to PDF document.
Delphi syntax: function AddImage(Image: TGraphic; Compression: THPDFImageCompressionType; IsMask: boolean = False; MaskIndex: Integer = -1): Integer; overload;
function AddImage(FileName: TFileName; Compression: THPDFImageCompressionType; IsMask: boolean = False; MaskIndex: Integer = -1): Integer; overload;
Description Call AddImage to register an image and obtain an image handle that can later be drawn with CurrentPage.ShowImage. The file overload accepts BMP and JPEG files, while the graphic overload accepts a loaded TGraphic instance. Compression selects the PDF image compression method. IsMask indicates whether the image is used as a mask, and MaskIndex identifies the associated mask image.
Code Example
See also: CurrentPage.ShowImage |