Description
Creates a Metafile object
for recording.
Syntax
GpStatus WINGDIPAPI GdipRecordMetafileFileName(
GDIPCONST
WCHAR* fileName,
HDC
referenceHdc,
EmfType type,
GDIPCONST
GpRectF * frameRect,
MetafileFrameUnit frameUnit,
GDIPCONST WCHAR
* description,
GpMetafile ** metafile
);
PowerBASIC Syntax
DECLARE FUNCTION GdipRecordMetafileFileName ( _
BYVAL pFilename
AS STRING _
BYVAL
referenceHdc AS DWORD _
BYVAL pType AS
LONG _
BYREF frameRect
AS RECTF _
BYVAL frameUnit
AS LONG _
BYVAL
description AS STRING _
BYREF metafile
AS DWORD _
) AS LONG
Parameters
filename
[in] Pointer to a wide-character string that
specifies the name of the file in which the metafile will be saved.
referenceHdc
[in] Windows handle to a device context that
contains attributes of a display device.
type
[in]
Element
of the EmfType enumeration that specifies the type
of metafile that will be recorded. The default value is
EmfTypeEmfPlusDual.
frameRect
[in]
Reference to a rectangle that bounds the metafile display.
frameUnit
[in]
Element
of the MetafileFrameUnit enumeration that specifies
the unit of measure for frameRect. The default
value is MetafileFrameUnitGdi.
description
[in]
Pointer
to a wide-character string that specifies the descriptive name of the
metafile. The default value is NULL.
metafile
[out] Pointer to a variable that receives a
pointer to the new created Metafile object.
Remarks
When recording to a file, the file must be
writable, and GDI+ must be able to obtain an exclusive lock on the file.
|