Rudimentary header-only 2D bitmap class. More...
#include <bitmap.h>
Collaboration diagram for Bitmap:Public Member Functions | |
| Bitmap () | |
| Create an empty bitmap. | |
| Bitmap (u32 width, u32 height) | |
| Create a new zero-filled bitmap. | |
| u32 | width () const |
| u32 | height () const |
| void | resize (u32 width, u32 height, bool initial_value=false) |
| void | reset (bool value) |
| bool | get (u32 x, u32 y) const |
| void | set (u32 x, u32 y) |
| void | unset (u32 x, u32 y) |
| bool | toggle (u32 x, u32 y) |
| bool | all () const |
| Returns true if all bits in the bitmap are set. | |
Private Member Functions | |
| template<bool set, bool toggle, bool clear> | |
| bool | modify_ (u32 x, u32 y) |
Static Private Member Functions | |
| static u32 | bytepos (u32 index) |
| static u8 | bitpos (u32 index) |
Private Attributes | |
| u32 | linesize |
| u32 | lines |
| std::vector< u8 > | data |
Rudimentary header-only 2D bitmap class.
|
inline |
Create an empty bitmap.
|
inline |
|
inline |
Returns true if all bits in the bitmap are set.
References bitpos(), data, lines, and linesize.
Referenced by imageCleanTransparentWithInlining().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
References data.
|
inline |
|
inline |
References modify_(), x, and y.
Referenced by imageCleanTransparentWithInlining(), and modify_().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |