PlayMetaFileFromBuffer
IPDFDocument4 :: Page Operations :: Common

See Also
Collapse All

This method adds a metafile from a array of bytes representing the EMF file.

Syntax

HRESULT PlayMetaFileFromBuffer (
VARIANT* bufferEmf,
LONG bufferSizeEMF,
FLOAT x,
FLOAT y,
FLOAT scaleX,
FLOAT scaleY
)
Parameters
bufferEmf
Array of bytes representing the EMF file (binary data)

bufferSizeEMF
Size (in bytes) of a EMF file

x
X coordinate of the drawing position

y
Y coordinate of the drawing position

scaleX
Horizontal scale factor

scaleY
Vertical scale factor

Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.

Remarks

This method paints the context of the metafile (provided by buffer of EMF) on the page at specified coordinates (x, y) with scaling (scaleX, scaleY).

See Also

Reference