ReactOS 0.4.16-dev-734-g364d6e0
|
#include <atlimage.h>
Classes | |
class | CInitGDIPlus |
struct | MYBITMAPINFOEX |
Public Types | |
enum | { createAlphaChannel = 1 } |
enum | DIBOrientation { DIBOR_DEFAULT , DIBOR_TOPDOWN , DIBOR_BOTTOMUP } |
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 () noexcept | |
virtual | ~CImage () noexcept |
operator HBITMAP () noexcept | |
void | Attach (HBITMAP hBitmap, DIBOrientation eOrientation=DIBOR_DEFAULT) noexcept |
HBITMAP | Detach () noexcept |
HDC | GetDC () const noexcept |
void | ReleaseDC () const noexcept |
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 noexcept |
BOOL | BitBlt (HDC hDestDC, int xDest, int yDest, DWORD dwROP=SRCCOPY) const noexcept |
BOOL | BitBlt (HDC hDestDC, const POINT &pointDest, DWORD dwROP=SRCCOPY) const noexcept |
BOOL | BitBlt (HDC hDestDC, const RECT &rectDest, const POINT &pointSrc, DWORD dwROP=SRCCOPY) const noexcept |
BOOL | Create (int nWidth, int nHeight, int nBPP, DWORD dwFlags=0) noexcept |
BOOL | CreateEx (int nWidth, int nHeight, int nBPP, DWORD eCompression, const DWORD *pdwBitmasks=NULL, DWORD dwFlags=0) noexcept |
void | Destroy () noexcept |
BOOL | Draw (HDC hDestDC, int xDest, int yDest, int nDestWidth, int nDestHeight, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight) const noexcept |
BOOL | Draw (HDC hDestDC, const RECT &rectDest, const RECT &rectSrc) const noexcept |
BOOL | Draw (HDC hDestDC, int xDest, int yDest) const noexcept |
BOOL | Draw (HDC hDestDC, const POINT &pointDest) const noexcept |
BOOL | Draw (HDC hDestDC, int xDest, int yDest, int nDestWidth, int nDestHeight) const noexcept |
BOOL | Draw (HDC hDestDC, const RECT &rectDest) const noexcept |
void * | GetBits () noexcept |
const void * | GetBits () const noexcept |
int | GetBPP () const noexcept |
void | GetColorTable (UINT iFirstColor, UINT nColors, RGBQUAD *prgbColors) const noexcept |
int | GetHeight () const noexcept |
int | GetMaxColorTableEntries () const noexcept |
int | GetPitch () const noexcept |
COLORREF | GetPixel (int x, int y) const noexcept |
void * | GetPixelAddress (int x, int y) noexcept |
const void * | GetPixelAddress (int x, int y) const noexcept |
COLORREF | GetTransparentColor () const noexcept |
int | GetWidth () const noexcept |
bool | IsDIBSection () const noexcept |
bool | IsIndexed () const noexcept |
bool | IsNull () const noexcept |
HRESULT | Load (LPCTSTR pszFileName) noexcept |
HRESULT | Load (IStream *pStream) noexcept |
void | LoadFromResource (HINSTANCE hInstance, LPCTSTR pszResourceName) noexcept |
void | LoadFromResource (HINSTANCE hInstance, UINT nIDResource) noexcept |
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 noexcept |
BOOL | MaskBlt (HDC hDestDC, const RECT &rectDest, const POINT &pointSrc, HBITMAP hbmMask, const POINT &pointMask, DWORD dwROP=SRCCOPY) const noexcept |
BOOL | MaskBlt (HDC hDestDC, int xDest, int yDest, HBITMAP hbmMask, DWORD dwROP=SRCCOPY) const noexcept |
BOOL | MaskBlt (HDC hDestDC, const POINT &pointDest, HBITMAP hbmMask, DWORD dwROP=SRCCOPY) const noexcept |
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 noexcept |
BOOL | PlgBlt (HDC hDestDC, const POINT *pPoints, HBITMAP hbmMask=NULL) const noexcept |
BOOL | PlgBlt (HDC hDestDC, const POINT *pPoints, const RECT &rectSrc, HBITMAP hbmMask, const POINT &pointMask) const noexcept |
BOOL | PlgBlt (HDC hDestDC, const POINT *pPoints, const RECT &rectSrc, HBITMAP hbmMask=NULL) const noexcept |
HRESULT | Save (IStream *pStream, GUID *guidFileType) const noexcept |
HRESULT | Save (LPCTSTR pszFileName, REFGUID guidFileType=GUID_NULL) const noexcept |
void | SetColorTable (UINT iFirstColor, UINT nColors, const RGBQUAD *prgbColors) noexcept |
void | SetPixel (int x, int y, COLORREF color) noexcept |
void | SetPixelIndexed (int x, int y, int iIndex) noexcept |
void | SetPixelRGB (int x, int y, BYTE r, BYTE g, BYTE b) noexcept |
COLORREF | SetTransparentColor (COLORREF rgbTransparent) noexcept |
BOOL | StretchBlt (HDC hDestDC, int xDest, int yDest, int nDestWidth, int nDestHeight, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight, DWORD dwROP=SRCCOPY) const noexcept |
BOOL | StretchBlt (HDC hDestDC, int xDest, int yDest, int nDestWidth, int nDestHeight, DWORD dwROP=SRCCOPY) const noexcept |
BOOL | StretchBlt (HDC hDestDC, const RECT &rectDest, DWORD dwROP=SRCCOPY) const noexcept |
BOOL | StretchBlt (HDC hDestDC, const RECT &rectDest, const RECT &rectSrc, DWORD dwROP=SRCCOPY) const noexcept |
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 noexcept |
BOOL | TransparentBlt (HDC hDestDC, int xDest, int yDest, int nDestWidth, int nDestHeight, UINT crTransparent=CLR_INVALID) const noexcept |
BOOL | TransparentBlt (HDC hDestDC, const RECT &rectDest, UINT crTransparent=CLR_INVALID) const noexcept |
BOOL | TransparentBlt (HDC hDestDC, const RECT &rectDest, const RECT &rectSrc, UINT crTransparent=CLR_INVALID) const noexcept |
Static Public Member Functions | |
static void | ReleaseGDIPlus () |
static BOOL | IsTransparencySupported () noexcept |
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('|')) |
Private Member Functions | |
LPCWSTR | GetFileExtension (LPCWSTR pszFileName) const |
COLORREF | RGBFromPaletteIndex (int iIndex) const |
void | AttachInternal (HBITMAP hBitmap, DIBOrientation eOrientation, LONG iTransColor) noexcept |
BOOL | CreateInternal (int nWidth, int nHeight, int nBPP, DWORD eCompression, const DWORD *pdwBitmasks=NULL, DWORD dwFlags=0) noexcept |
CImage (const CImage &)=delete | |
CImage & | operator= (const CImage &)=delete |
Static Private Member Functions | |
static bool | ShouldExcludeFormat (REFGUID guidFileType, DWORD dwExclude) |
static HRESULT | BuildCodecFilterString (const Gdiplus::ImageCodecInfo *pCodecs, UINT cCodecs, CSimpleString &strFilter, CSimpleArray< GUID > &aguidFileTypes, LPCTSTR pszAllFilesDescription, DWORD dwExclude, TCHAR chSeparator) |
static bool | InitGDIPlus () noexcept |
static CLSID | FindCodecForExtension (LPCTSTR dotext, const Gdiplus::ImageCodecInfo *pCodecs, UINT nCodecs) |
static CLSID | FindCodecForFileType (REFGUID guidFileType, const Gdiplus::ImageCodecInfo *pCodecs, UINT nCodecs) |
static Gdiplus::ImageCodecInfo * | _getAllEncoders (UINT &cEncoders) |
static Gdiplus::ImageCodecInfo * | _getAllDecoders (UINT &cDecoders) |
Private Attributes | |
HBITMAP | m_hBitmap = NULL |
HBITMAP | m_hOldBitmap = NULL |
INT | m_nWidth = 0 |
INT | m_nHeight = 0 |
INT | m_nPitch = 0 |
INT | m_nBPP = 0 |
LPVOID | m_pBits = NULL |
BOOL | m_bHasAlphaChannel = FALSE |
BOOL | m_bIsDIBSection = FALSE |
COLORREF | m_clrTransparentColor = CLR_INVALID |
HDC | m_hDC = NULL |
LONG | m_nDCRefCount = 0 |
Static Private Attributes | |
static CInitGDIPlus | s_gdiplus |
Definition at line 23 of file atlimage.h.
anonymous enum |
Enumerator | |
---|---|
DIBOR_DEFAULT | |
DIBOR_TOPDOWN | |
DIBOR_BOTTOMUP |
Definition at line 33 of file atlimage.h.
Enumerator | |
---|---|
excludeGIF | |
excludeBMP | |
excludeEMF | |
excludeWMF | |
excludeJPEG | |
excludePNG | |
excludeTIFF | |
excludeIcon | |
excludeOther | |
excludeDefaultLoad | |
excludeDefaultSave |
Definition at line 691 of file atlimage.h.
|
inlinenoexcept |
Definition at line 40 of file atlimage.h.
|
inlinevirtualnoexcept |
Definition at line 45 of file atlimage.h.
|
inlinestaticprivate |
Definition at line 1104 of file atlimage.h.
Referenced by GetImporterFilterString().
|
inlinestaticprivate |
Definition at line 1085 of file atlimage.h.
Referenced by GetExporterFilterString(), and Save().
|
inline |
Definition at line 146 of file atlimage.h.
|
inline |
Definition at line 151 of file atlimage.h.
|
inline |
Definition at line 138 of file atlimage.h.
|
inline |
Definition at line 119 of file atlimage.h.
|
inlinenoexcept |
Definition at line 61 of file atlimage.h.
Referenced by Load(), LoadFromResource(), Test_BitmapEntry(), Test_CompatBitmapEntry(), and Test_DIBSectionEntry().
|
inlineprivatenoexcept |
Definition at line 1123 of file atlimage.h.
Referenced by Attach(), and CreateInternal().
|
inlinenoexcept |
Definition at line 179 of file atlimage.h.
|
inlinenoexcept |
Definition at line 173 of file atlimage.h.
|
inlinestaticprivate |
Definition at line 728 of file atlimage.h.
Referenced by GetExporterFilterString(), and GetImporterFilterString().
Definition at line 193 of file atlimage.h.
|
inlinenoexcept |
Definition at line 198 of file atlimage.h.
Referenced by Create().
|
inlineprivatenoexcept |
Definition at line 1164 of file atlimage.h.
Referenced by CreateEx().
|
inlinenoexcept |
Definition at line 204 of file atlimage.h.
Referenced by AttachInternal(), and ~CImage().
|
inlinenoexcept |
Definition at line 250 of file atlimage.h.
Definition at line 246 of file atlimage.h.
|
inlinenoexcept |
Definition at line 254 of file atlimage.h.
|
inlinenoexcept |
Definition at line 212 of file atlimage.h.
Referenced by Draw().
|
inlinestaticprivate |
Definition at line 1042 of file atlimage.h.
Referenced by Save().
|
inlinestaticprivate |
Definition at line 1075 of file atlimage.h.
Referenced by Save().
Definition at line 273 of file atlimage.h.
|
inlinenoexcept |
Definition at line 267 of file atlimage.h.
Referenced by GetBits(), GetPixelAddress(), and Test_DIBSectionEntry().
|
inlinenoexcept |
Definition at line 278 of file atlimage.h.
Referenced by GetPixelAddress(), IsIndexed(), Test_BitmapEntry(), Test_DIBSectionEntry(), and Test_ResBitmap().
|
inlinenoexcept |
Definition at line 284 of file atlimage.h.
Referenced by RGBFromPaletteIndex(), and Test_DIBSectionEntry().
|
inlinenoexcept |
Definition at line 80 of file atlimage.h.
Referenced by AlphaBlend(), BitBlt(), GetColorTable(), GetPixel(), MaskBlt(), PlgBlt(), SetColorTable(), SetPixel(), SetPixelIndexed(), StretchBlt(), Test_DIBSectionEntry(), and TransparentBlt().
|
inlinestatic |
Definition at line 817 of file atlimage.h.
Referenced by CMainWindow::GetSaveFileName(), and Test_Exporter().
|
inlinenoexcept |
Definition at line 293 of file atlimage.h.
Referenced by AlphaBlend(), BitBlt(), Draw(), MaskBlt(), PlgBlt(), StretchBlt(), Test_BitmapEntry(), Test_CompatBitmapEntry(), Test_DIBSectionEntry(), Test_ResBitmap(), and TransparentBlt().
|
inlinestatic |
Definition at line 794 of file atlimage.h.
Referenced by CMainWindow::GetOpenFileName(), and Test_Importer().
|
inlinenoexcept |
Definition at line 299 of file atlimage.h.
Referenced by Test_DIBSectionEntry().
|
inlinenoexcept |
Definition at line 313 of file atlimage.h.
Referenced by GetPixelAddress(), Test_DIBSectionEntry(), and Test_ResBitmap().
Definition at line 319 of file atlimage.h.
Referenced by GetPixel(), and Test_DIBSectionEntry().
Definition at line 336 of file atlimage.h.
Definition at line 327 of file atlimage.h.
Referenced by GetPixelAddress(), and Test_PixelAddress().
|
inlinenoexcept |
Definition at line 341 of file atlimage.h.
Referenced by Test_DIBSectionEntry().
|
inlinenoexcept |
Definition at line 346 of file atlimage.h.
Referenced by AlphaBlend(), BitBlt(), Draw(), MaskBlt(), PlgBlt(), StretchBlt(), Test_BitmapEntry(), Test_CompatBitmapEntry(), Test_DIBSectionEntry(), Test_ResBitmap(), and TransparentBlt().
|
inlinestaticprivatenoexcept |
Definition at line 1005 of file atlimage.h.
Referenced by GetExporterFilterString(), GetImporterFilterString(), Load(), and Save().
|
inlinenoexcept |
Definition at line 352 of file atlimage.h.
Referenced by GetBits(), GetColorTable(), GetMaxColorTableEntries(), GetPitch(), GetPixelAddress(), IsIndexed(), SetColorTable(), Test_BitmapEntry(), Test_CompatBitmapEntry(), and Test_DIBSectionEntry().
|
inlinenoexcept |
Definition at line 358 of file atlimage.h.
Referenced by SetPixelIndexed().
|
inlinenoexcept |
Definition at line 364 of file atlimage.h.
Referenced by Test_BitmapEntry(), Test_CompatBitmapEntry(), Test_DIBSectionEntry(), and Test_ResBitmap().
|
inlinestaticnoexcept |
Definition at line 686 of file atlimage.h.
Referenced by AlphaBlend(), Draw(), MaskBlt(), PlgBlt(), and TransparentBlt().
Definition at line 398 of file atlimage.h.
Definition at line 369 of file atlimage.h.
Referenced by Test_DIBSectionEntry().
Definition at line 426 of file atlimage.h.
Referenced by LoadFromResource(), and Test_ResBitmap().
Definition at line 432 of file atlimage.h.
|
inlinenoexcept |
Definition at line 464 of file atlimage.h.
|
inlinenoexcept |
Definition at line 458 of file atlimage.h.
|
inlinenoexcept |
Definition at line 51 of file atlimage.h.
|
inlinenoexcept |
Definition at line 489 of file atlimage.h.
|
inlinenoexcept |
Definition at line 496 of file atlimage.h.
|
inlinenoexcept |
Definition at line 483 of file atlimage.h.
|
inlinenoexcept |
Definition at line 98 of file atlimage.h.
Referenced by AlphaBlend(), BitBlt(), GetColorTable(), GetPixel(), MaskBlt(), PlgBlt(), SetColorTable(), SetPixel(), SetPixelIndexed(), StretchBlt(), Test_DIBSectionEntry(), TransparentBlt(), and ATL::CImageDC::~CImageDC().
|
inlinestatic |
Definition at line 56 of file atlimage.h.
Definition at line 1033 of file atlimage.h.
Referenced by Draw().
Definition at line 503 of file atlimage.h.
Referenced by Test_DIBSectionEntry().
|
inlinenoexcept |
Definition at line 533 of file atlimage.h.
|
inlinenoexcept |
Definition at line 575 of file atlimage.h.
Definition at line 584 of file atlimage.h.
Referenced by SetPixelRGB(), and Test_DIBSectionEntry().
Definition at line 591 of file atlimage.h.
Definition at line 599 of file atlimage.h.
Definition at line 604 of file atlimage.h.
|
inlinestaticprivate |
|
inlinenoexcept |
Definition at line 630 of file atlimage.h.
|
inlinenoexcept |
Definition at line 623 of file atlimage.h.
|
inlinenoexcept |
Definition at line 612 of file atlimage.h.
Referenced by Draw(), and StretchBlt().
|
inlinenoexcept |
Definition at line 669 of file atlimage.h.
|
inlinenoexcept |
Definition at line 648 of file atlimage.h.
|
inlinenoexcept |
Definition at line 662 of file atlimage.h.
Definition at line 1018 of file atlimage.h.
Referenced by AttachInternal(), CreateInternal(), Detach(), and Draw().
Definition at line 1019 of file atlimage.h.
Referenced by AttachInternal(), Detach(), and IsDIBSection().
|
private |
Definition at line 1020 of file atlimage.h.
Referenced by AttachInternal(), Detach(), Draw(), GetTransparentColor(), and SetTransparentColor().
Definition at line 1011 of file atlimage.h.
Referenced by AttachInternal(), Destroy(), Detach(), GetBPP(), GetDC(), GetHeight(), GetWidth(), IsDIBSection(), IsNull(), operator HBITMAP(), Save(), and SetTransparentColor().
Definition at line 1021 of file atlimage.h.
Referenced by AlphaBlend(), BitBlt(), GetColorTable(), GetDC(), GetPixel(), MaskBlt(), PlgBlt(), ReleaseDC(), SetColorTable(), SetPixel(), SetPixelIndexed(), StretchBlt(), and TransparentBlt().
Definition at line 1012 of file atlimage.h.
Referenced by Detach(), GetDC(), and ReleaseDC().
|
private |
Definition at line 1016 of file atlimage.h.
Referenced by AttachInternal(), Detach(), GetBPP(), and GetMaxColorTableEntries().
|
mutableprivate |
Definition at line 1022 of file atlimage.h.
Referenced by GetDC(), and ReleaseDC().
|
private |
Definition at line 1014 of file atlimage.h.
Referenced by AttachInternal(), Detach(), and GetHeight().
|
private |
Definition at line 1015 of file atlimage.h.
Referenced by AttachInternal(), Detach(), and GetPitch().
|
private |
Definition at line 1013 of file atlimage.h.
Referenced by AttachInternal(), Detach(), and GetWidth().
Definition at line 1017 of file atlimage.h.
Referenced by AttachInternal(), Detach(), and GetBits().
|
staticprivate |
Definition at line 1003 of file atlimage.h.
Referenced by _getAllDecoders(), _getAllEncoders(), CImage(), InitGDIPlus(), Load(), ReleaseGDIPlus(), Save(), and ~CImage().