This is a type of device context that allows a metafile object to be
created (Windows only), and has most of the characteristics of a normal
This is a type of device context that allows a metafile object to be
created (Windows only), and has most of the characteristics of a normal
Adding metafile capability to an application should be easy if you
already write to a wxDC; simply pass the wxMetafileDC to your drawing
function instead. You may wish to conditionally compile this code so it
Adding metafile capability to an application should be easy if you
already write to a wxDC; simply pass the wxMetafileDC to your drawing
function instead. You may wish to conditionally compile this code so it
Note that a metafile saved to disk is in standard Windows metafile format,
and cannot be imported into most applications. To make it importable,
Note that a metafile saved to disk is in standard Windows metafile format,
and cannot be imported into most applications. To make it importable,
- call the function ::wxMakeMetafilePlaceable after
- closing your disk-based metafile device context.
+ call the function ::wxMakeMetafilePlaceable after closing your disk-based
+ metafile device context.
- This must be called after the device context is finished with. A
- metafile is returned, and ownership of it passes to the calling
+ This must be called after the device context is finished with.
+ A metafile is returned, and ownership of it passes to the calling
A @b wxMetafile represents the MS Windows metafile object, so metafile
operations have no effect in X. In wxWidgets, only sufficient functionality
has been provided for copying a graphic to the clipboard; this may be extended
A @b wxMetafile represents the MS Windows metafile object, so metafile
operations have no effect in X. In wxWidgets, only sufficient functionality
has been provided for copying a graphic to the clipboard; this may be extended
- Constructor. If a filename is given, the Windows disk metafile is
- read in. Check whether this was performed successfully by
- using the @ref isok() wxMetafile:IsOk member.
+ Constructor.
+
+ If a filename is given, the Windows disk metafile is read in.
+ Check whether this was performed successfully by using the IsOk() member.
Passes the metafile data to the clipboard. The metafile can no longer be
used for anything, but the wxMetafile object must still be destroyed by
the application.
Passes the metafile data to the clipboard. The metafile can no longer be
used for anything, but the wxMetafile object must still be destroyed by
the application.
Below is a example of metafile, metafile device context and clipboard use
from the @c hello.cpp example. Note the way the metafile dimensions
are passed to the clipboard, making use of the device context's ability
to keep track of the maximum extent of drawing commands.
Below is a example of metafile, metafile device context and clipboard use
from the @c hello.cpp example. Note the way the metafile dimensions
are passed to the clipboard, making use of the device context's ability
to keep track of the maximum extent of drawing commands.
// Global functions/macros
// ============================================================================
// Global functions/macros
// ============================================================================