aswang  1.0
Public Member Functions
aswang::Bitmap Class Reference

Wraps a bitmap handle and automatically handles allocation/deallocation. More...

#include <Bitmap.h>

List of all members.

Public Member Functions

 Bitmap ()
 Bitmap (HBITMAP h)
 Wrap existing handle.
virtual ~Bitmap ()
 Cleanup.
virtual void Delete ()
 Free the HBITMAP.
virtual HBITMAP GetHandle () const
 Get the windows handle for the bitmap.
virtual BITMAP GetObjectInfo ()
 Structure contains size, type, depth, etc.
virtual long GetWidth ()
virtual long GetHeight ()
virtual long GetWidthBytes ()
virtual short GetPlanes ()
virtual short GetBitsPerPixel ()
virtual char * GetBits ()
 Get raw bit values.
virtual Bitmapoperator= (HBITMAP h)
virtual operator HBITMAP () const

Detailed Description

Wraps a bitmap handle and automatically handles allocation/deallocation.

Definition at line 26 of file Bitmap.h.


Constructor & Destructor Documentation

aswang::Bitmap::Bitmap ( ) [inline]

Definition at line 30 of file Bitmap.h.

aswang::Bitmap::Bitmap ( HBITMAP  h) [inline]

Wrap existing handle.

Attention:
Will free h when destructing.

Definition at line 33 of file Bitmap.h.

virtual aswang::Bitmap::~Bitmap ( ) [inline, virtual]

Cleanup.

Attention:
Will call Delete()

Definition at line 36 of file Bitmap.h.


Member Function Documentation

void Bitmap::Delete ( ) [virtual]

Free the HBITMAP.

Definition at line 24 of file Bitmap.cpp.

char * Bitmap::GetBits ( ) [virtual]

Get raw bit values.

Returns:
a character buffer allocated by the API
Do no free

Definition at line 70 of file Bitmap.cpp.

short Bitmap::GetBitsPerPixel ( ) [virtual]

Definition at line 63 of file Bitmap.cpp.

virtual HBITMAP aswang::Bitmap::GetHandle ( ) const [inline, virtual]

Get the windows handle for the bitmap.

Definition at line 43 of file Bitmap.h.

long Bitmap::GetHeight ( ) [virtual]

Definition at line 48 of file Bitmap.cpp.

BITMAP Bitmap::GetObjectInfo ( ) [virtual]

Structure contains size, type, depth, etc.

Definition at line 35 of file Bitmap.cpp.

short Bitmap::GetPlanes ( ) [virtual]

Definition at line 58 of file Bitmap.cpp.

long Bitmap::GetWidth ( ) [virtual]

Definition at line 43 of file Bitmap.cpp.

long Bitmap::GetWidthBytes ( ) [virtual]

Definition at line 53 of file Bitmap.cpp.

virtual aswang::Bitmap::operator HBITMAP ( ) const [inline, virtual]

Definition at line 55 of file Bitmap.h.

Bitmap & Bitmap::operator= ( HBITMAP  h) [virtual]

Definition at line 29 of file Bitmap.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines