Functions | |
| int32_t | CxImage::Blt (HDC pDC, int32_t x=0, int32_t y=0) |
| HBITMAP | CxImage::Draw2HBITMAP (HDC hdc, int32_t x, int32_t y, int32_t cx, int32_t cy, RECT *pClipRect, bool bSmooth) |
| HBITMAP | CxImage::MakeBitmap (HDC hdc=NULL, bool bTransparency=false) |
| HICON | CxImage::MakeIcon (HDC hdc=NULL, bool bTransparency=false) |
| HANDLE | CxImage::CopyToHandle () |
| bool | CxImage::CreateFromHANDLE (HANDLE hMem) |
| bool | CxImage::CreateFromHBITMAP (HBITMAP hbmp, HPALETTE hpal=0, bool bTransparency=false) |
| bool | CxImage::CreateFromHICON (HICON hico, bool bTransparency=false) |
| int32_t | CxImage::Draw (HDC hdc, int32_t x=0, int32_t y=0, int32_t cx=-1, int32_t cy=-1, RECT *pClipRect=0, bool bSmooth=false, bool bFlipY=false) |
| int32_t | CxImage::Draw (HDC hdc, const RECT &rect, RECT *pClipRect=NULL, bool bSmooth=false, bool bFlipY=false) |
| int32_t | CxImage::Stretch (HDC hdc, int32_t xoffset, int32_t yoffset, int32_t xsize, int32_t ysize, uint32_t dwRop=SRCCOPY) |
| int32_t | CxImage::Stretch (HDC hdc, const RECT &rect, uint32_t dwRop=SRCCOPY) |
| int32_t | CxImage::Tile (HDC hdc, RECT *rc) |
| int32_t | CxImage::Draw2 (HDC hdc, int32_t x=0, int32_t y=0, int32_t cx=-1, int32_t cy=-1) |
| int32_t | CxImage::Draw2 (HDC hdc, const RECT &rect) |
| int32_t | CxImage::DrawString (HDC hdc, int32_t x, int32_t y, const TCHAR *text, RGBQUAD color, const TCHAR *font, int32_t lSize=0, int32_t lWeight=400, uint8_t bItalic=0, uint8_t bUnderline=0, bool bSetAlpha=false) |
| int32_t | CxImage::DrawStringEx (HDC hdc, int32_t x, int32_t y, CXTEXTINFO *pTextType, bool bSetAlpha=false) |
| void | CxImage::InitTextInfo (CXTEXTINFO *txt) |
| bool | CxImage::IsHBITMAPAlphaValid (HBITMAP hbmp) |
| int32_t CxImage::Blt | ( | HDC | pDC, | |
| int32_t | x = 0, |
|||
| int32_t | y = 0 | |||
| ) | [inherited] |
| HANDLE CxImage::CopyToHandle | ( | ) | [inherited] |
Transfer the image in a global bitmap handle (clipboard copy)
| bool CxImage::CreateFromHANDLE | ( | HANDLE | hMem | ) | [inherited] |
Global object (clipboard paste) constructor
| hMem,: | source bitmap object, the clipboard format must be CF_DIB |
| bool CxImage::CreateFromHBITMAP | ( | HBITMAP | hbmp, | |
| HPALETTE | hpal = 0, |
|||
| bool | bTransparency = false | |||
| ) | [inherited] |
Bitmap resource constructor
| hbmp | : bitmap resource handle | |
| hpal | : (optional) palette, useful for 8bpp DC | |
| bTransparency | : (optional) for 32bpp images only, imports trancparency |
| bool CxImage::CreateFromHICON | ( | HICON | hico, | |
| bool | bTransparency = false | |||
| ) | [inherited] |
icon resource constructor
| hico | : icon resource handle | |
| bTransparency | : (optional) for 32bpp images only, imports trancparency |
| int32_t CxImage::Draw | ( | HDC | hdc, | |
| const RECT & | rect, | |||
| RECT * | pClipRect = NULL, |
|||
| bool | bSmooth = false, |
|||
| bool | bFlipY = false | |||
| ) | [inherited] |
| int32_t CxImage::Draw | ( | HDC | hdc, | |
| int32_t | x = 0, |
|||
| int32_t | y = 0, |
|||
| int32_t | cx = -1, |
|||
| int32_t | cy = -1, |
|||
| RECT * | pClipRect = 0, |
|||
| bool | bSmooth = false, |
|||
| bool | bFlipY = false | |||
| ) | [inherited] |
Draws the image in the specified device context, with support for alpha channel, alpha palette, transparency, opacity.
| hdc | : destination device context | |
| x,y | : (optional) offset | |
| cx,cy | : (optional) size.
| |
| pClipRect | : limit the drawing operations inside a given rectangle in the output device context. | |
| bSmooth | : activates a bilinear filter that will enhance the appearence for zommed pictures. Quite slow. Needs CXIMAGE_SUPPORT_INTERPOLATION. | |
| bFlipY | : draws a mirror image along the y-axis |
| int32_t CxImage::Draw2 | ( | HDC | hdc, | |
| const RECT & | rect | |||
| ) | [inherited] |
| int32_t CxImage::Draw2 | ( | HDC | hdc, | |
| int32_t | x = 0, |
|||
| int32_t | y = 0, |
|||
| int32_t | cx = -1, |
|||
| int32_t | cy = -1 | |||
| ) | [inherited] |
Draws (stretch) the image with single transparency support
| hdc | : destination device context | |
| x,y | : (optional) offset | |
| cx,cy | : (optional) size.
|
| HBITMAP CxImage::Draw2HBITMAP | ( | HDC | hdc, | |
| int32_t | x, | |||
| int32_t | y, | |||
| int32_t | cx, | |||
| int32_t | cy, | |||
| RECT * | pClipRect, | |||
| bool | bSmooth | |||
| ) | [inherited] |
renders the image into a HBITMAP handle
| hdc | : destination device context | |
| x,y | : (optional) offset | |
| cx,cy | : (optional) size.
| |
| pClipRect | : limit the drawing operations inside a given rectangle in the output device context. | |
| bSmooth | : activates a bilinear filter that will enhance the appearence for zommed pictures. Quite slow. Needs CXIMAGE_SUPPORT_INTERPOLATION. |
| int32_t CxImage::DrawString | ( | HDC | hdc, | |
| int32_t | x, | |||
| int32_t | y, | |||
| const TCHAR * | text, | |||
| RGBQUAD | color, | |||
| const TCHAR * | font, | |||
| int32_t | lSize = 0, |
|||
| int32_t | lWeight = 400, |
|||
| uint8_t | bItalic = 0, |
|||
| uint8_t | bUnderline = 0, |
|||
| bool | bSetAlpha = false | |||
| ) | [inherited] |
| int32_t CxImage::DrawStringEx | ( | HDC | hdc, | |
| int32_t | x, | |||
| int32_t | y, | |||
| CXTEXTINFO * | pTextType, | |||
| bool | bSetAlpha = false | |||
| ) | [inherited] |
| void CxImage::InitTextInfo | ( | CXTEXTINFO * | txt | ) | [inherited] |
| bool CxImage::IsHBITMAPAlphaValid | ( | HBITMAP | hbmp | ) | [protected, inherited] |
check if the bitmap contains transparency data
| hbmp | : bitmap resource handle |
| HBITMAP CxImage::MakeBitmap | ( | HDC | hdc = NULL, |
|
| bool | bTransparency = false | |||
| ) | [inherited] |
Transfer the image in a bitmap handle
| hdc,: | target device context (the screen, usually) | |
| bTransparency | : (optional) exports trancparency |
| HICON CxImage::MakeIcon | ( | HDC | hdc = NULL, |
|
| bool | bTransparency = false | |||
| ) | [inherited] |
Transfer the image in a icon handle, with transparency.
| hdc,: | target device context (the screen, usually) | |
| bTransparency | : (optional) exports trancparency |
| int32_t CxImage::Stretch | ( | HDC | hdc, | |
| const RECT & | rect, | |||
| uint32_t | dwRop = SRCCOPY | |||
| ) | [inherited] |
| int32_t CxImage::Stretch | ( | HDC | hdc, | |
| int32_t | xoffset, | |||
| int32_t | yoffset, | |||
| int32_t | xsize, | |||
| int32_t | ysize, | |||
| uint32_t | dwRop = SRCCOPY | |||
| ) | [inherited] |
| int32_t CxImage::Tile | ( | HDC | hdc, | |
| RECT * | rc | |||
| ) | [inherited] |
Tiles the device context in the specified rectangle with the image.
| hdc | : destination device context | |
| rc | : tiled rectangle in the output device context |
1.5.4