|
Public Member Functions |
| | CBitmap (long resourceID) |
| | Create a pixmap from a resource identifier.
|
| | CBitmap (CFrame &frame, CCoord width, CCoord height) |
| | Create a pixmap with a given size.
|
| virtual | ~CBitmap () |
| virtual void | draw (CDrawContext *pContext, CRect &rect, const CPoint &offset=CPoint(0, 0)) |
| | Draw the pixmap using a given rect as output position and a given offset of its source pixmap.
|
| virtual void | drawTransparent (CDrawContext *pContext, CRect &rect, const CPoint &offset=CPoint(0, 0)) |
| virtual void | drawAlphaBlend (CDrawContext *pContext, CRect &rect, const CPoint &offset=CPoint(0, 0), unsigned char alpha=128) |
| | Same as CBitmap::draw except that it uses the alpha value to draw the bitmap alpha blended.
|
| CCoord | getWidth () const |
| CCoord | getHeight () const |
| bool | isLoaded () const |
| void * | getHandle () const |
| void | setTransparentColor (const CColor color) |
| CColor | getTransparentColor () const |
| void | setTransparencyMask (CDrawContext *pContext, const CPoint &offset=CPoint(0, 0)) |
| void | setNoAlpha (bool state) |
| bool | getNoAlpha () const |
Protected Member Functions |
| | CBitmap () |
| virtual void | dispose () |
| virtual bool | loadFromResource (long resourceID) |
| virtual bool | loadFromPath (const void *platformPath) |
Protected Attributes |
| long | resourceID |
| CCoord | width |
| CCoord | height |
| CColor | transparentCColor |
| bool | noAlpha |