Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 495

Previous Page 494   Index   Next Page 496

Function Reference
Page 495 of 767
Remarks:
To insert an image from a file buffer use the function InsertImageFromBuffer(). It is possible to use
one image on several pages or positions. To insert an image multiple times use the function
PlaceImage(). However, once an image was inserted, the physical dimension cannot be changed
anymore; it can only be scaled to different sizes. If an image should be used with different
dimensions, insert the largest version first or insert it again with this function.
DynaPDF checks whether an image was already inserted before inserting an image again. The
duplicate check is done by using a MD5 hash of the file name and the used parameters to insert the
image. If all parameters are the same, the already available image is used instead.
Return values:
If the function succeeds the return value is the image handle, a value greater or equal zero. If the
function fails the return value is a negative error code.
 

Previous topic: Images with an alpha channel

Next topic: How to calculate the image size?