Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 474

Previous Page 473   Index   Next Page 475

Function Reference
Page 474 of 750
Return values:
If the function succeeds the return value is the annotation handle, a value greater or equal zero. If the
function fails the return value is a negative error code.
InsertBMPFromBuffer (obsolete)
Syntax:
SI32 pdfInsertBMPFromBuffer(
const PPDF* IPDF,
// Instance pointer
double PosX,
// X-Coordinate of destination rectangle
double PosY,
// Y-Coordinate of destination rectangle
double ScaleWidth,
// Scaled width of destination rectangle
double ScaleHeight, // Scaled height of destination rectangle
const void* Buffer) // Source buffer of the DIB
The function inserts a Device Independent Bitmap from a file buffer. The parameter Buffer requires a
normal file buffer as bitmap image.
This function is marked as obsolete, please use InsertImageFromBuffer() if possible. This function
will be removed in DynaPDF 3.0.
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.
InsertBMPFromHandle
Syntax:
SI32 pdfInsertBMPFromHandle(
const PPDF* IPDF,
// Instance pointer
double PosX,
// X-Coordinate of destination rectangle
double PosY,
// Y-Coordinate of destination rectangle
double ScaleWidth,
// Scaled width of destination rectangle
double ScaleHeight, // Scaled height of destination rectangle
void* hBitmap);
// Windows HBITMAP handle
This function inserts a bitmap in the same way as InsertImage() but accepts a HBITMAP handle as
input. The bitmap must not be selected into a device context when calling this function.
See also InsertImage().
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: InkAnnot

Next topic: InsertBookmarkEx