DynaPDF Manual - Page 522

Previous Page 521   Index   Next Page 523

Function Reference
Page 522 of 818
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.
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.
InsertBookmark
Syntax:
SI32 pdfInsertBookmark(
const PPDF* IPDF,
// Instance pointer
const char* Title, // Bookmark title
SI32 Parent,
// Immediate parent bookmark
UI32 DestPage,
// Destination page that should be opened
 

Previous topic: Special options

Next topic: InsertBookmarkEx


Start Chat