OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TEnhMetaFilePict Class Reference

TEnhMetaFilePict is a class that encapsulates the enhanced metafile. More...

#include <owl/metafile.h>

Inheritance diagram for owl::TEnhMetaFilePict:
owl::TGdiBase

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.
 

Detailed Description

TEnhMetaFilePict is a class that encapsulates the enhanced metafile.

Definition at line 148 of file metafile.h.

Constructor & Destructor Documentation

◆ TEnhMetaFilePict() [1/5]

owl::TEnhMetaFilePict::TEnhMetaFilePict ( HENHMETAFILE handle,
TAutoDelete autoDelete )

Alias for an existing enhanced metafile handle.

Definition at line 336 of file metafile.cpp.

◆ TEnhMetaFilePict() [2/5]

owl::TEnhMetaFilePict::TEnhMetaFilePict ( const tstring & filename)

Creates an enhanced metafile from an external file.

Definition at line 345 of file metafile.cpp.

◆ TEnhMetaFilePict() [3/5]

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.

◆ TEnhMetaFilePict() [4/5]

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.

◆ TEnhMetaFilePict() [5/5]

owl::TEnhMetaFilePict::TEnhMetaFilePict ( uint bytes,
const void * buffer )

Creates metafile from buffer.

Definition at line 373 of file metafile.cpp.

◆ ~TEnhMetaFilePict()

owl::TEnhMetaFilePict::~TEnhMetaFilePict ( )

Destroys the enhanced metafile picture.

Definition at line 382 of file metafile.cpp.

References owl::TGdiBase::Handle, and owl::TGdiBase::ShouldDelete.

Member Function Documentation

◆ GetBits()

uint owl::TEnhMetaFilePict::GetBits ( uint bytes,
void * buffer )
inline

Returns the bits of the metafile.

Definition at line 291 of file metafile.h.

◆ GetDescription()

uint owl::TEnhMetaFilePict::GetDescription ( uint bytes,
void * buffer )
inline

Retrieves the description of this enhanced metafile.

Definition at line 298 of file metafile.h.

◆ GetHeader()

uint owl::TEnhMetaFilePict::GetHeader ( uint bytes,
ENHMETAHEADER * record )
inline

Retrieves the header information for the enhanced metafile.

Definition at line 305 of file metafile.h.

◆ GetPaletteEntries()

uint owl::TEnhMetaFilePict::GetPaletteEntries ( uint count,
PALETTEENTRY * entries )
inline

Retrieves the palette entries of the enhanced metafile.

Definition at line 312 of file metafile.h.

◆ operator HENHMETAFILE()

owl::TEnhMetaFilePict::operator HENHMETAFILE ( ) const
inline

Returns the associated handle of the enhanced metafile.

Definition at line 284 of file metafile.h.

◆ PlayOnto()

bool owl::TEnhMetaFilePict::PlayOnto ( TDC & dc,
const TRect * rect ) const

Plays the metafile onto a device context.

Definition at line 392 of file metafile.cpp.


The documentation for this class was generated from the following files: