DynaPDF Manual - Page 554
Previous Page 553 Index Next Page 555
Function Reference
Page 554 of 839
that was returned by the API function GetEnhMetaFileBis(), GetWinMetaFileBits() or
GetMetaFileBitsEx(). Buffer can also be a file buffer of an EMF or WMF file.
The usage of the function is described at InsertMetafile(). How the View rectangle must be calculated
is described in detail at GetLogMetafileSize(), this function is always required for the calculation
(use GetLogMetafileSizeEx() instead, it supports a file buffer such as this function).
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
InsertMetafileFromHandle
Syntax:
LBOOL pdfInsertMetafileFromHandle(
const PPDF* IPDF,
// Instance pointer
const void* hEnhMetafile, // Enhanced Metafile Handle
double PosX,
// X-Coordinate of output rectangle
double PosY,
// Y-Coordinate of output rectangle
double Width,
// Width of output rectangle
double Height)
// Height of output rectangle
This function inserts an Enhanced Metafile exactly in the same way as InsertMetafile() but accepts a
HENHMETAFILE handle as input. See also InsertMetafile().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
InsertMetafileFromHandleEx
Syntax:
LBOOL pdfInsertMetafileFromHandleEx(
const PPDF* IPDF,
// Instance pointer
const void* hEnhMetafile, // Enhanced Metafile Handle
struct TRectL* View,
// Optional view rectangle (can be NULL)
double PosX,
// X-Coordinate of output rectangle
double PosY,
// Y-Coordinate of output rectangle
double Width,
// Width of output rectangle
double Height)
// Height of output rectangle
This function inserts an Enhanced Metafile exactly in the same way as InsertMetafileExt() but
accepts a HENHMETAFILE handle as input. See also InsertMetafileExt().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
Previous topic: InsertMetafileExt, InsertMetafileExtEx
Next topic: InsertRawImage