|
sprint 1-alpha
|
Gestione delle Bitmap. More...
#include <Bitmap.h>
Public Member Functions | |
| TBitmap (HBITMAP hbmp=NULL) | |
| bool | IsNull () const |
| C'e' una Bitmap? | |
| operator HBITMAP () const | |
| bool | DeleteObject () |
| HBITMAP | Attach (HBITMAP hBitmap) |
| Attach the new bitmap (removing the previous one to avoid memory leakage) | |
| HBITMAP | Detach () |
| remove current bitmap, without deleting (take care to avoit memory leakage) | |
| HBITMAP | LoadBitmap (LPCTSTR bitmap) |
| Load a bitmap from a file. | |
| HBITMAP | LoadOEMBitmap (UINT nIDBitmap) |
| HBITMAP | CreateDIBitmap (HDC hDC, CONST BITMAPINFOHEADER *lpbmih, DWORD dwInit, CONST VOID *lpbInit, CONST BITMAPINFO *lpbmi, UINT uColorUse) |
| HBITMAP | CreateDIBSection (HDC hDC, const BITMAPINFO *lpbmi, UINT uColorUse, void **ppvBits, HANDLE hSection=0, DWORD dwOffset=0) |
| HBITMAP | CreateBitmap (int nWidth, int nHeight, UINT nPlanes, UINT nBitsPerPixel, const void *lpBits) |
| HBITMAP | CreateCompatibleBitmap (HDC hDC, int nWidth, int nHeight) |
| Crea la Bitmap di dimensioni nWidth x nHeight compatibile con il Device. | |
| bool | GetBitmap (BITMAP &bm) const |
| Ritorna le informazioni sulla bitmap (Width, Height, Bpp) | |
| int | GetDIBits (HDC hDC, UINT uStartScan, UINT cScanLines, LPVOID lpvBits, LPBITMAPINFO lpbmi, UINT uColorUse) const |
| int | SetDIBits (HDC hDC, UINT uStartScan, UINT cScanLines, CONST VOID *lpvBits, const BITMAPINFO *lpbmi, UINT uColorUse) |
| bool | GetSize (SIZE &size) const |
Public Attributes | |
| HBITMAP | m_bmp |
Gestione delle Bitmap.
| HBITMAP sprint::gtl::TBitmap< tManagedBmp >::CreateBitmap | ( | int | nWidth, |
| int | nHeight, | ||
| UINT | nPlanes, | ||
| UINT | nBitsPerPixel, | ||
| const void * | lpBits | ||
| ) |
Create a Device-Independent Bitmap from a memory buffer
| lpBits | bufferout |
| HBITMAP sprint::gtl::TBitmap< tManagedBmp >::CreateDIBSection | ( | HDC | hDC, |
| const BITMAPINFO * | lpbmi, | ||
| UINT | uColorUse, | ||
| void ** | ppvBits, | ||
| HANDLE | hSection = 0, |
||
| DWORD | dwOffset = 0 |
||
| ) |
create a bitmap object from a BITMAPINFO and returning pointer to memory to IO
m_bmp.CreateDIBSection(ps, &bitmapinfo, DIB_RGB_COLORS, (void**) &histobuf);
1.7.4