Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

GDIImage Class Reference
[Images]

Manipulates uncompressed device- and platform-independent bitmaps. More...

#include <gmlgdiimage.h>

Inheritance diagram for GDIImage:

Image SmartObject List of all members.

Public Member Functions

 GDIImage ()
 Creates an empty bitmap.

virtual ~GDIImage ()
 Destroys the bitmap.

 GDIImage (const Image &Orig)
 Copy constructor.

 GDIImage (const GDIImage &Orig)
 Copy constructor.

GDIImageoperator= (const Image &Orig)
 Assignment operator.

GDIImageoperator= (const GDIImage &Orig)
long GetMemUsed ()
 Returns the amount of memory used by the object.

long GetBytesPerLine () const
 Returns number of bytes used per line.

const BYTE * GetRawData () const
BYTE * GetRawData ()
 Access to raw data array. Warning!!! Dangerous function! Use with care.

void PaintImage (HDC in_hDC, DWORD dwRop=SRCCOPY)
 Paint image.

void PaintImage (HDC in_hDC, POINT in_ptDstOrg, DWORD dwRop=SRCCOPY)
 Paint image at a specified offset.

void PaintImage (HDC in_hDC, POINT in_ptDstOrg, SIZE in_DstSize, DWORD dwRop=SRCCOPY)
 Fit image to specified rectangle.

void PaintImageRect (HDC in_hDC, POINT in_ptDstOrg, RECT in_SrcRect, SIZE in_DstSize, DWORD dwRop=SRCCOPY)
 Fit image fragment to specified rectangle.

virtual gml::DrawSurfaceGetDrawSurface ()
 Draw surface.

virtual bool FastResizeImage (double in_dScale, gml::GDIImage &out_ResImg)
 Fast GDI image resize.


Protected Member Functions

virtual void ConstructorInitLocals ()
virtual bool InternalCreate (int Width, int Height, FORMAT format, REPRES repres, ORIENT orient=O_BOTTOMLEFT)
virtual void FreeMembers ()
 Delete memory allocated by member variables.

virtual void InitLineArray ()
 Initialize internal table of line addresses.

virtual void InternalChangeOrientation (ORIENT new_orient)
virtual void InternalPaint (HDC in_hDC, int in_iDstOrgX, int in_iDstOrgY, int in_iDstWdt, int in_iDstHgt, int in_iSrcOrgX, int in_iSrcOrgY, int in_iSrcWdt, int in_iSrcHgt, DWORD dwRop)

Static Protected Member Functions

long GetBytesPerLine (int width, FORMAT f, REPRES r)

Protected Attributes

BYTE * m_pBits
 Pointer to the bits.

HDC m_hDC
 Internal device context.

BITMAPINFO m_BMInfo
 Bitmap info structure.

RGBQUAD m_pPalette [255]
 Palette for 1-channel images.

RGBQUAD * m_pColorTable
HBITMAP m_hBMP
 BITMAP handel.

HGDIOBJ m_hOldHandle
 Neded for cleanup.

int m_iBytesPerLine
 Bytes per line in the created DIB.


Friends

class GDISurface

Detailed Description

Manipulates uncompressed device- and platform-independent bitmaps.

The data is stored sequentially without padding in the bitmap. The class implements exactly the interface defined by gml::Image without additions.


Member Function Documentation

virtual bool InternalCreate int  Width,
int  Height,
FORMAT  format,
REPRES  repres,
ORIENT  orient = O_BOTTOMLEFT
[protected, virtual]
 

Create a new bitmap with uninitialized bits. (Assume no memory is allocated yet.)

Implements Image.

virtual void InternalChangeOrientation ORIENT  new_orient  )  [protected, virtual]
 

Change image orientation to given state

Warning:
you should set m_orient variable after actual operation

Implements Image.


The documentation for this class was generated from the following file:
Generated on Tue Jan 13 21:12:05 2004 for Graphics and Media Lab CSL by doxygen 1.3.4