ReactOS
0.4.15-dev-4614-ga5a6101
|
#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 697 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 123 of file atlimage.h.
Referenced by AlphaBlend(), and Draw().
|
inline |
Definition at line 142 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 79 of file atlimage.h.
Referenced by Load(), and LoadFromResource().
|
inlineprotected |
Definition at line 1124 of file atlimage.h.
Referenced by Attach(), and CreateInternal().
|
inline |
Definition at line 167 of file atlimage.h.
Referenced by BitBlt().
|
inline |
Definition at line 177 of file atlimage.h.
|
inline |
Definition at line 183 of file atlimage.h.
|
inline |
Definition at line 188 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 1143 of file atlimage.h.
Referenced by CreateEx().
|
inline |
Definition at line 208 of file atlimage.h.
Referenced by AttachInternal(), START_TEST(), and ~CImage().
|
inline |
|
inline |
Definition at line 216 of file atlimage.h.
Referenced by Draw(), and START_TEST().
|
inline |
Definition at line 241 of file atlimage.h.
Definition at line 250 of file atlimage.h.
Definition at line 254 of file atlimage.h.
|
inline |
Definition at line 258 of file atlimage.h.
Definition at line 264 of file atlimage.h.
Definition at line 1026 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 1057 of file atlimage.h.
Referenced by Save().
|
inline |
Definition at line 288 of file atlimage.h.
Referenced by RGBFromPaletteIndex().
|
inlinestaticprotected |
Definition at line 981 of file atlimage.h.
Referenced by CImage(), GetEncoderClsid(), Load(), and Save().
|
inlinestaticprotected |
Definition at line 720 of file atlimage.h.
Referenced by GetExporterFilterString(), and GetImporterFilterString().
|
inlinestaticprotected |
|
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 1082 of file atlimage.h.
Referenced by GetClsidFromFileType().
|
inlinestatic |
Definition at line 797 of file atlimage.h.
|
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 783 of file atlimage.h.
|
inline |
Definition at line 303 of file atlimage.h.
|
inline |
Definition at line 323 of file atlimage.h.
Referenced by GetPixelAddress().
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 1112 of file atlimage.h.
Referenced by GetClsidFromFileType(), and Save().
|
inline |
|
inline |
|
inlinestatic |
Definition at line 692 of file atlimage.h.
Referenced by AlphaBlend(), Draw(), MaskBlt(), PlgBlt(), and TransparentBlt().
Definition at line 377 of file atlimage.h.
Referenced by START_TEST().
Definition at line 405 of file atlimage.h.
|
inline |
Definition at line 432 of file atlimage.h.
Referenced by LoadFromResource(), and START_TEST().
Definition at line 438 of file atlimage.h.
|
inline |
Definition at line 443 of file atlimage.h.
Referenced by MaskBlt().
|
inline |
Definition at line 456 of file atlimage.h.
|
inline |
Definition at line 464 of file atlimage.h.
|
inline |
Definition at line 470 of file atlimage.h.
|
inline |
Definition at line 73 of file atlimage.h.
|
private |
|
inline |
Definition at line 476 of file atlimage.h.
Referenced by PlgBlt().
|
inline |
Definition at line 489 of file atlimage.h.
|
inline |
Definition at line 495 of file atlimage.h.
|
inline |
Definition at line 502 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 1012 of file atlimage.h.
Referenced by Draw().
Definition at line 519 of file atlimage.h.
Referenced by START_TEST().
|
inline |
Definition at line 542 of file atlimage.h.
|
inline |
Definition at line 580 of file atlimage.h.
Definition at line 589 of file atlimage.h.
Referenced by SetPixelRGB().
Definition at line 596 of file atlimage.h.
Definition at line 604 of file atlimage.h.
|
inline |
Definition at line 617 of file atlimage.h.
Referenced by Draw(), and StretchBlt().
|
inline |
Definition at line 628 of file atlimage.h.
|
inline |
Definition at line 635 of file atlimage.h.
|
inline |
Definition at line 642 of file atlimage.h.
|
inline |
Definition at line 653 of file atlimage.h.
Referenced by Draw(), and TransparentBlt().
|
inline |
Definition at line 667 of file atlimage.h.
|
inline |
Definition at line 674 of file atlimage.h.
|
inline |
Definition at line 681 of file atlimage.h.
union { ... } |
|
protected |
Definition at line 994 of file atlimage.h.
Referenced by AttachInternal(), CImage(), CreateInternal(), Detach(), and Draw().
|
protected |
Definition at line 995 of file atlimage.h.
Referenced by AttachInternal(), CImage(), and IsDIBSection().
BITMAP ATL::CImage::m_bm |
Definition at line 999 of file atlimage.h.
Referenced by AttachInternal(), GetBits(), GetBPP(), GetHeight(), GetMaxColorTableEntries(), GetPitch(), and GetWidth().
DIBSECTION ATL::CImage::m_ds |
Definition at line 1000 of file atlimage.h.
Referenced by AttachInternal(), CImage(), Detach(), and GetMaxColorTableEntries().
|
protected |
Definition at line 993 of file atlimage.h.
Referenced by AttachInternal(), CImage(), Detach(), GetBits(), and GetPitch().
|
protected |
Definition at line 990 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 991 of file atlimage.h.
Referenced by CImage(), GetDC(), and ReleaseDC().
|
mutableprotected |
Definition at line 992 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 996 of file atlimage.h.
Referenced by AttachInternal(), CImage(), Detach(), Draw(), GetTransparentColor(), and SetTransparentColor().