Components for Developers
© 2000-2008, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Images
AddImageFromHandleWithColorMask

See Also
Collapse All

This method inserts a masked image from a handle into a PDF document's images collection and returns the index of the image.

Syntax

LONG AddImageFromHandleWithColorMask (
OLE_HANDLE handle,
OLE_COLOR rgbColor
)
Parameters
handle
Handle to an image object

rgbColor
Color which marks points that need to be transparent

Return value
Index of the new image

Remarks

The rgbColor parameter is a double word (4 bytes) value in the format 0x00BBGGRR. The low-order byte contains a value for the relative intensity of red; the second byte contains a value for green; and the third byte contains a value for blue. The high-order byte must be zero.

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 Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2008, Two Pilots