sprint 1-alpha
Public Member Functions | Public Attributes
sprint::gtl::TBitmap< tManagedBmp > Class Template Reference

Gestione delle Bitmap. More...

#include <Bitmap.h>

List of all members.

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

Detailed Description

template<bool tManagedBmp>
class sprint::gtl::TBitmap< tManagedBmp >

Gestione delle Bitmap.


Member Function Documentation

template<bool tManagedBmp>
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

Parameters:
lpBitsbufferout
template<bool tManagedBmp>
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);

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