ReactOS 0.4.15-dev-5863-g1fe3ab7
|
#include <atlimage.h>
Classes | |
struct | COMMON |
struct | EXTENSION_ENTRY |
struct | FILTER_DATA |
struct | FORMAT_ENTRY |
struct | MYBITMAPINFOEX |
Public Types | |
enum | { createAlphaChannel = 1 } |
enum | DIBOrientation { DIBOR_DEFAULT , DIBOR_BOTTOMUP , DIBOR_TOPDOWN } |
enum | ExcludeFlags { excludeGIF = 0x01 , excludeBMP = 0x02 , excludeEMF = 0x04 , excludeWMF = 0x08 , excludeJPEG = 0x10 , excludePNG = 0x20 , excludeTIFF = 0x40 , excludeIcon = 0x80 , excludeOther = 0x80000000 , excludeDefaultLoad = 0 , excludeDefaultSave = excludeIcon | excludeEMF | excludeWMF } |
Public Member Functions | |
CImage () throw () | |
~CImage () | |
operator HBITMAP () | |
void | Attach (HBITMAP hBitmap, DIBOrientation eOrientation=DIBOR_DEFAULT) |
HBITMAP | Detach () throw () |
HDC | GetDC () const throw () |
void | ReleaseDC () const throw () |
BOOL | AlphaBlend (HDC hDestDC, int xDest, int yDest, int nDestWidth, int nDestHeight, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight, BYTE bSrcAlpha=0xFF, BYTE bBlendOp=AC_SRC_OVER) const |
BOOL | AlphaBlend (HDC hDestDC, int xDest, int yDest, BYTE bSrcAlpha=0xFF, BYTE bBlendOp=AC_SRC_OVER) const |
BOOL | AlphaBlend (HDC hDestDC, const POINT &pointDest, BYTE bSrcAlpha=0xFF, BYTE bBlendOp=AC_SRC_OVER) const |
BOOL | AlphaBlend (HDC hDestDC, const RECT &rectDest, const RECT &rectSrc, BYTE bSrcAlpha=0xFF, BYTE bBlendOp=AC_SRC_OVER) const |
BOOL | BitBlt (HDC hDestDC, int xDest, int yDest, int nDestWidth, int nDestHeight, int xSrc, int ySrc, DWORD dwROP=SRCCOPY) const throw () |
BOOL | BitBlt (HDC hDestDC, int xDest, int yDest, DWORD dwROP=SRCCOPY) const throw () |
BOOL | BitBlt (HDC hDestDC, const POINT &pointDest, DWORD dwROP=SRCCOPY) const throw () |
BOOL | BitBlt (HDC hDestDC, const RECT &rectDest, const POINT &pointSrc, DWORD dwROP=SRCCOPY) const throw () |
BOOL | Create (int nWidth, int nHeight, int nBPP, DWORD dwFlags=0) throw () |
BOOL | CreateEx (int nWidth, int nHeight, int nBPP, DWORD eCompression, const DWORD *pdwBitmasks=NULL, DWORD dwFlags=0) throw () |
void | Destroy () throw () |
BOOL | Draw (HDC hDestDC, int xDest, int yDest, int nDestWidth, int nDestHeight, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight) const throw () |
BOOL | Draw (HDC hDestDC, const RECT &rectDest, const RECT &rectSrc) const throw () |
BOOL | Draw (HDC hDestDC, int xDest, int yDest) const throw () |
BOOL | Draw (HDC hDestDC, const POINT &pointDest) const throw () |
BOOL | Draw (HDC hDestDC, int xDest, int yDest, int nDestWidth, int nDestHeight) const throw () |
BOOL | Draw (HDC hDestDC, const RECT &rectDest) const throw () |
void * | GetBits () throw () |
int | GetBPP () const throw () |
void | GetColorTable (UINT iFirstColor, UINT nColors, RGBQUAD *prgbColors) const throw () |
int | GetHeight () const throw () |
int | GetMaxColorTableEntries () const throw () |
int | GetPitch () const throw () |
COLORREF | GetPixel (int x, int y) const throw () |
void * | GetPixelAddress (int x, int y) throw () |
COLORREF | GetTransparentColor () const throw () |
int | GetWidth () const throw () |
bool | IsDIBSection () const throw () |
bool | IsIndexed () const throw () |
bool | IsNull () const throw () |
HRESULT | Load (LPCTSTR pszFileName) throw () |
HRESULT | Load (IStream *pStream) throw () |
void | LoadFromResource (HINSTANCE hInstance, LPCTSTR pszResourceName) throw () |
void | LoadFromResource (HINSTANCE hInstance, UINT nIDResource) throw () |
BOOL | MaskBlt (HDC hDestDC, int xDest, int yDest, int nDestWidth, int nDestHeight, int xSrc, int ySrc, HBITMAP hbmMask, int xMask, int yMask, DWORD dwROP=SRCCOPY) const throw () |
BOOL | MaskBlt (HDC hDestDC, const RECT &rectDest, const POINT &pointSrc, HBITMAP hbmMask, const POINT &pointMask, DWORD dwROP=SRCCOPY) const throw () |
BOOL | MaskBlt (HDC hDestDC, int xDest, int yDest, HBITMAP hbmMask, DWORD dwROP=SRCCOPY) const throw () |
BOOL | MaskBlt (HDC hDestDC, const POINT &pointDest, HBITMAP hbmMask, DWORD dwROP=SRCCOPY) const throw () |
BOOL | PlgBlt (HDC hDestDC, const POINT *pPoints, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight, HBITMAP hbmMask=NULL, int xMask=0, int yMask=0) const throw () |
BOOL | PlgBlt (HDC hDestDC, const POINT *pPoints, HBITMAP hbmMask=NULL) const throw () |
BOOL | PlgBlt (HDC hDestDC, const POINT *pPoints, const RECT &rectSrc, HBITMAP hbmMask, const POINT &pointMask) const throw () |
BOOL | PlgBlt (HDC hDestDC, const POINT *pPoints, const RECT &rectSrc, HBITMAP hbmMask=NULL) const throw () |
void | ReleaseGDIPlus () throw () |
HRESULT | Save (IStream *pStream, GUID *guidFileType) const throw () |
HRESULT | Save (LPCTSTR pszFileName, REFGUID guidFileType=GUID_NULL) const throw () |
void | SetColorTable (UINT iFirstColor, UINT nColors, const RGBQUAD *prgbColors) throw () |
void | SetPixel (int x, int y, COLORREF color) throw () |
void | SetPixelIndexed (int x, int y, int iIndex) throw () |
void | SetPixelRGB (int x, int y, BYTE r, BYTE g, BYTE b) throw () |
COLORREF | SetTransparentColor (COLORREF rgbTransparent) throw () |
BOOL | StretchBlt (HDC hDestDC, int xDest, int yDest, int nDestWidth, int nDestHeight, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight, DWORD dwROP=SRCCOPY) const throw () |
BOOL | StretchBlt (HDC hDestDC, int xDest, int yDest, int nDestWidth, int nDestHeight, DWORD dwROP=SRCCOPY) const throw () |
BOOL | StretchBlt (HDC hDestDC, const RECT &rectDest, DWORD dwROP=SRCCOPY) const throw () |
BOOL | StretchBlt (HDC hDestDC, const RECT &rectDest, const RECT &rectSrc, DWORD dwROP=SRCCOPY) const throw () |
BOOL | TransparentBlt (HDC hDestDC, int xDest, int yDest, int nDestWidth, int nDestHeight, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight, UINT crTransparent=CLR_INVALID) const throw () |
BOOL | TransparentBlt (HDC hDestDC, int xDest, int yDest, int nDestWidth, int nDestHeight, UINT crTransparent=CLR_INVALID) const throw () |
BOOL | TransparentBlt (HDC hDestDC, const RECT &rectDest, UINT crTransparent=CLR_INVALID) const throw () |
BOOL | TransparentBlt (HDC hDestDC, const RECT &rectDest, const RECT &rectSrc, UINT crTransparent=CLR_INVALID) const throw () |
Static Public Member Functions | |
static BOOL | IsTransparencySupported () throw () |
static HRESULT | GetImporterFilterString (CSimpleString &strImporters, CSimpleArray< GUID > &aguidFileTypes, LPCTSTR pszAllFilesDescription=NULL, DWORD dwExclude=excludeDefaultLoad, TCHAR chSeparator=TEXT('|')) |
static HRESULT | GetExporterFilterString (CSimpleString &strExporters, CSimpleArray< GUID > &aguidFileTypes, LPCTSTR pszAllFilesDescription=NULL, DWORD dwExclude=excludeDefaultSave, TCHAR chSeparator=TEXT('|')) |
Protected Member Functions | |
LPCWSTR | GetFileExtension (LPCWSTR pszFileName) const |
COLORREF | RGBFromPaletteIndex (int iIndex) const |
const GUID * | FileTypeFromExtension (LPCWSTR pszExt) const |
bool | GetClsidFromFileType (CLSID *clsid, const GUID *guid) const |
int | GetEncoderClsid (LPCWSTR mime, CLSID *clsid) const |
bool | IsGuidEqual (const GUID &guid1, const GUID &guid2) const |
void | AttachInternal (HBITMAP hBitmap, DIBOrientation eOrientation, LONG iTransColor) |
BOOL | CreateInternal (int nWidth, int nHeight, int nBPP, DWORD eCompression, const DWORD *pdwBitmasks=NULL, DWORD dwFlags=0) throw () |
Static Protected Member Functions | |
static HRESULT | GetCommonFilterString (CSimpleString &strFilter, CSimpleArray< GUID > &aguidFileTypes, LPCTSTR pszAllFilesDescription, DWORD dwExclude, TCHAR chSeparator) |
static COMMON *& | GetCommonPtr () |
static COMMON & | GetCommon () |
Protected Attributes | |
HBITMAP | m_hbm |
HGDIOBJ | m_hbmOld |
HDC | m_hDC |
DIBOrientation | m_eOrientation |
bool | m_bHasAlphaCh |
bool | m_bIsDIBSec |
COLORREF | m_rgbTransColor |
union { | |
BITMAP m_bm | |
DIBSECTION m_ds | |
}; | |
Private Member Functions | |
CImage (const CImage &) | |
CImage & | operator= (const CImage &) |
Definition at line 32 of file atlimage.h.
anonymous enum |
Enumerator | |
---|---|
DIBOR_DEFAULT | |
DIBOR_BOTTOMUP | |
DIBOR_TOPDOWN |
Definition at line 42 of file atlimage.h.
Enumerator | |
---|---|
excludeGIF | |
excludeBMP | |
excludeEMF | |
excludeWMF | |
excludeJPEG | |
excludePNG | |
excludeTIFF | |
excludeIcon | |
excludeOther | |
excludeDefaultLoad | |
excludeDefaultSave |
Definition at line 701 of file atlimage.h.
|
inline |
Definition at line 49 of file atlimage.h.
|
inline |
Definition at line 67 of file atlimage.h.
|
inline |
Definition at line 150 of file atlimage.h.
|
inline |
Definition at line 155 of file atlimage.h.
|
inline |
Definition at line 142 of file atlimage.h.
|
inline |
Definition at line 123 of file atlimage.h.
|
inline |
Definition at line 79 of file atlimage.h.
Referenced by Load(), and LoadFromResource().
|
inlineprotected |
Definition at line 1128 of file atlimage.h.
Referenced by Attach(), and CreateInternal().
|
inline |
Definition at line 183 of file atlimage.h.
|
inline |
Definition at line 177 of file atlimage.h.
Definition at line 197 of file atlimage.h.
|
inline |
Definition at line 202 of file atlimage.h.
Referenced by Create().
|
inlineprotected |
Definition at line 1147 of file atlimage.h.
Referenced by CreateEx().
|
inline |
Definition at line 208 of file atlimage.h.
Referenced by AttachInternal(), START_TEST(), and ~CImage().
|
inline |
Definition at line 254 of file atlimage.h.
Definition at line 250 of file atlimage.h.
|
inline |
Definition at line 258 of file atlimage.h.
|
inline |
Definition at line 216 of file atlimage.h.
Referenced by Draw(), and START_TEST().
Definition at line 1030 of file atlimage.h.
Referenced by Save().
|
inline |
Definition at line 271 of file atlimage.h.
Referenced by GetPixelAddress().
|
inline |
Definition at line 282 of file atlimage.h.
Referenced by GetPixelAddress(), IsIndexed(), and START_TEST().
Definition at line 1061 of file atlimage.h.
Referenced by Save().
|
inline |
Definition at line 288 of file atlimage.h.
Referenced by RGBFromPaletteIndex().
|
inlinestaticprotected |
Definition at line 985 of file atlimage.h.
Referenced by CImage(), GetEncoderClsid(), Load(), and Save().
|
inlinestaticprotected |
Definition at line 724 of file atlimage.h.
Referenced by GetExporterFilterString(), and GetImporterFilterString().
|
inlinestaticprotected |
Definition at line 979 of file atlimage.h.
Referenced by GetCommon(), and ReleaseGDIPlus().
|
inline |
Definition at line 96 of file atlimage.h.
Referenced by AlphaBlend(), BitBlt(), GetColorTable(), GetPixel(), MaskBlt(), PlgBlt(), SetColorTable(), SetPixel(), SetPixelIndexed(), START_TEST(), StretchBlt(), and TransparentBlt().
Definition at line 1086 of file atlimage.h.
Referenced by GetClsidFromFileType().
|
inlinestatic |
Definition at line 801 of file atlimage.h.
Referenced by _tWinMain(), and START_TEST().
|
inline |
Definition at line 297 of file atlimage.h.
Referenced by AlphaBlend(), BitBlt(), Draw(), MaskBlt(), PlgBlt(), START_TEST(), StretchBlt(), and TransparentBlt().
|
inlinestatic |
Definition at line 787 of file atlimage.h.
Referenced by _tWinMain(), and START_TEST().
|
inline |
Definition at line 303 of file atlimage.h.
|
inline |
Definition at line 332 of file atlimage.h.
Referenced by GetPixel(), and START_TEST().
Definition at line 340 of file atlimage.h.
|
inline |
Definition at line 349 of file atlimage.h.
|
inline |
Definition at line 354 of file atlimage.h.
Referenced by AlphaBlend(), BitBlt(), Draw(), MaskBlt(), PlgBlt(), START_TEST(), StretchBlt(), and TransparentBlt().
|
inline |
Definition at line 360 of file atlimage.h.
Referenced by GetBits(), GetColorTable(), GetMaxColorTableEntries(), GetPitch(), GetPixelAddress(), IsIndexed(), and SetColorTable().
Definition at line 1116 of file atlimage.h.
Referenced by GetClsidFromFileType(), and Save().
|
inline |
Definition at line 366 of file atlimage.h.
Referenced by SetPixelIndexed().
|
inline |
Definition at line 372 of file atlimage.h.
Referenced by START_TEST().
|
inlinestatic |
Definition at line 696 of file atlimage.h.
Referenced by AlphaBlend(), Draw(), MaskBlt(), PlgBlt(), and TransparentBlt().
Definition at line 407 of file atlimage.h.
Definition at line 377 of file atlimage.h.
Referenced by START_TEST().
|
inline |
Definition at line 436 of file atlimage.h.
Referenced by LoadFromResource(), and START_TEST().
Definition at line 442 of file atlimage.h.
|
inline |
Definition at line 474 of file atlimage.h.
|
inline |
Definition at line 468 of file atlimage.h.
|
inline |
Definition at line 73 of file atlimage.h.
|
inline |
Definition at line 499 of file atlimage.h.
|
inline |
Definition at line 506 of file atlimage.h.
|
inline |
Definition at line 493 of file atlimage.h.
|
inline |
Definition at line 106 of file atlimage.h.
Referenced by AlphaBlend(), BitBlt(), GetColorTable(), GetPixel(), MaskBlt(), PlgBlt(), SetColorTable(), SetPixel(), SetPixelIndexed(), START_TEST(), StretchBlt(), and TransparentBlt().
|
inline |
Definition at line 513 of file atlimage.h.
Referenced by ~CImage().
Definition at line 1016 of file atlimage.h.
Referenced by Draw().
Definition at line 523 of file atlimage.h.
Referenced by START_TEST().
|
inline |
Definition at line 546 of file atlimage.h.
|
inline |
Definition at line 584 of file atlimage.h.
Definition at line 593 of file atlimage.h.
Referenced by SetPixelRGB().
Definition at line 600 of file atlimage.h.
Definition at line 608 of file atlimage.h.
Definition at line 613 of file atlimage.h.
Referenced by START_TEST().
|
inline |
Definition at line 639 of file atlimage.h.
|
inline |
Definition at line 632 of file atlimage.h.
|
inline |
Definition at line 621 of file atlimage.h.
Referenced by Draw(), and StretchBlt().
|
inline |
Definition at line 678 of file atlimage.h.
|
inline |
Definition at line 657 of file atlimage.h.
|
inline |
Definition at line 671 of file atlimage.h.
union { ... } ATL::CImage::@4078 |
|
protected |
Definition at line 998 of file atlimage.h.
Referenced by AttachInternal(), CImage(), CreateInternal(), Detach(), and Draw().
|
protected |
Definition at line 999 of file atlimage.h.
Referenced by AttachInternal(), CImage(), and IsDIBSection().
BITMAP ATL::CImage::m_bm |
Definition at line 1003 of file atlimage.h.
Referenced by AttachInternal(), GetBits(), GetBPP(), GetHeight(), GetMaxColorTableEntries(), GetPitch(), and GetWidth().
DIBSECTION ATL::CImage::m_ds |
Definition at line 1004 of file atlimage.h.
Referenced by AttachInternal(), CImage(), Detach(), and GetMaxColorTableEntries().
|
protected |
Definition at line 997 of file atlimage.h.
Referenced by AttachInternal(), CImage(), Detach(), GetBits(), and GetPitch().
|
protected |
Definition at line 994 of file atlimage.h.
Referenced by AttachInternal(), CImage(), Destroy(), Detach(), GetBPP(), GetDC(), GetHeight(), GetWidth(), IsDIBSection(), IsNull(), operator HBITMAP(), Save(), and SetTransparentColor().
|
mutableprotected |
Definition at line 995 of file atlimage.h.
Referenced by CImage(), GetDC(), and ReleaseDC().
|
mutableprotected |
Definition at line 996 of file atlimage.h.
Referenced by AlphaBlend(), BitBlt(), CImage(), GetColorTable(), GetDC(), GetPixel(), MaskBlt(), PlgBlt(), ReleaseDC(), SetColorTable(), SetPixel(), SetPixelIndexed(), StretchBlt(), and TransparentBlt().
|
protected |
Definition at line 1000 of file atlimage.h.
Referenced by AttachInternal(), CImage(), Detach(), Draw(), GetTransparentColor(), and SetTransparentColor().