|
OWLNext 7.0
Borland's Object Windows Library for the modern age
|
TEnhMetaFilePict is a class that encapsulates the enhanced metafile. More...
#include <owl/metafile.h>
Public Member Functions | |
| TEnhMetaFilePict (HENHMETAFILE handle, TAutoDelete autoDelete) | |
| Alias for an existing enhanced metafile handle. | |
| TEnhMetaFilePict (const tstring &filename) | |
| Creates an enhanced metafile from an external file. | |
| TEnhMetaFilePict (const TEnhMetaFilePict &metafilepict, LPCTSTR filename=nullptr) | |
| Copies a metafile. | |
| TEnhMetaFilePict (const TEnhMetaFilePict &metafilepict, const tstring &filename) | |
| String-aware overload If the filename is empty, the metafile is copied to a memory-based metafile. | |
| TEnhMetaFilePict (uint bytes, const void *buffer) | |
| Creates metafile from buffer. | |
| ~TEnhMetaFilePict () | |
| Destroys the enhanced metafile picture. | |
| operator HENHMETAFILE () const | |
| Returns the associated handle of the enhanced metafile. | |
| bool | PlayOnto (TDC &dc, const TRect *rect) const |
| Plays the metafile onto a device context. | |
| uint | GetBits (uint bytes, void *buffer) |
| Returns the bits of the metafile. | |
| uint | GetDescription (uint bytes, void *buffer) |
| Retrieves the description of this enhanced metafile. | |
| uint | GetHeader (uint bytes, ENHMETAHEADER *record) |
| Retrieves the header information for the enhanced metafile. | |
| uint | GetPaletteEntries (uint count, PALETTEENTRY *entries) |
| Retrieves the palette entries of the enhanced metafile. | |
TEnhMetaFilePict is a class that encapsulates the enhanced metafile.
Definition at line 148 of file metafile.h.
| owl::TEnhMetaFilePict::TEnhMetaFilePict | ( | HENHMETAFILE | handle, |
| TAutoDelete | autoDelete ) |
Alias for an existing enhanced metafile handle.
Definition at line 336 of file metafile.cpp.
References owl::TGdiBase::TGdiBase().
| owl::TEnhMetaFilePict::TEnhMetaFilePict | ( | const tstring & | filename | ) |
Creates an enhanced metafile from an external file.
Definition at line 345 of file metafile.cpp.
References owl::TGdiBase::TGdiBase(), and owl::AutoDelete.
| owl::TEnhMetaFilePict::TEnhMetaFilePict | ( | const TEnhMetaFilePict & | metafilepict, |
| LPCTSTR | filename = nullptr ) |
Copies a metafile.
If the filename is 0 (the default), then the metafile is copied to a memory-based metafile.
Definition at line 355 of file metafile.cpp.
References TEnhMetaFilePict(), owl::TGdiBase::TGdiBase(), and owl::AutoDelete.
| owl::TEnhMetaFilePict::TEnhMetaFilePict | ( | const TEnhMetaFilePict & | metafilepict, |
| const tstring & | filename ) |
String-aware overload If the filename is empty, the metafile is copied to a memory-based metafile.
Definition at line 366 of file metafile.cpp.
References TEnhMetaFilePict(), owl::TGdiBase::TGdiBase(), and owl::AutoDelete.
| owl::TEnhMetaFilePict::TEnhMetaFilePict | ( | uint | bytes, |
| const void * | buffer ) |
Creates metafile from buffer.
Definition at line 373 of file metafile.cpp.
References owl::TGdiBase::TGdiBase(), and owl::AutoDelete.
| owl::TEnhMetaFilePict::~TEnhMetaFilePict | ( | ) |
Destroys the enhanced metafile picture.
Definition at line 382 of file metafile.cpp.
References owl::TGdiBase::Handle, and owl::TGdiBase::ShouldDelete.
Returns the bits of the metafile.
Definition at line 291 of file metafile.h.
Retrieves the description of this enhanced metafile.
Definition at line 298 of file metafile.h.
Retrieves the header information for the enhanced metafile.
Definition at line 305 of file metafile.h.
Retrieves the palette entries of the enhanced metafile.
Definition at line 312 of file metafile.h.
|
inline |
Returns the associated handle of the enhanced metafile.
Definition at line 284 of file metafile.h.
References owl::TGdiBase::Handle.
Plays the metafile onto a device context.
Definition at line 392 of file metafile.cpp.