DynaPDF Manual - Page 502

Previous Page 501   Index   Next Page 503

Function Reference
Page 502 of 787
Return values:
The return value depends on whether an image or vector graphic was created. If the flag
bcoImageOutput is set or if the barcode type is bctUltracode, the return value is the image handle, a
value greater or equal zero on success or a negative error code on failure.
In vector mode the return value is zero on success or a negative error code on failure.
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: Human readable text, Special options

Next topic: InsertBookmark

Start Chat