Components for Developers
© 2000-2012, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Images
AddImageFromFile

See Also
Collapse All

This method adds an image from a file into a PDF document's images collection and returns the index of the added image. Supported image formats: BMP, GIF, JPEG, PNG, TIFF.

Syntax

LONG AddImageFromFile (
BSTR fileName
)
Parameters
fileName
Path to the file containing the image

Return value
Index of the new image. If there is more than one image in a file, then the method returns the index of the most recently added image.

Remarks

The return value is an image identifier in the document's images collection and can be used in GetImageHeight, GetImageResolution, GetImageWidth, TransformImage, ShowImage, DrawImage.

See the ShowImage method for examples.

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2012, Two Pilots