#include <gmlgdiimage.h>
Inheritance diagram for GDIImage:
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. | |
GDIImage & | operator= (const Image &Orig) |
Assignment operator. | |
GDIImage & | operator= (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::DrawSurface * | GetDrawSurface () |
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 |
The data is stored sequentially without padding in the bitmap. The class implements exactly the interface defined by gml::Image without additions.
|
Create a new bitmap with uninitialized bits. (Assume no memory is allocated yet.) Implements Image. |
|
Change image orientation to given state
Implements Image. |