Xojo Conferences
XDCMay2019MiamiUSA
MBSOct2019CologneDE

DynaPDF Manual - Page 503

Previous Page 502   Index   Next Page 504

Function Reference
Page 503 of 766
The function converts an Enhanced Meta File (EMF) or Windows Meta File (WMF) to a native PDF
vector graphic in the same way as InsertMetafileExt(). However, this function requires a file buffer
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: InsertMetafileExtEx

Next topic: InsertRawImage