Base Framework
|
#include <base/ui/Bitmap.h>
Inherits Object.
Public Types | |
enum | Format { GRAY, GRAY_ALPHA, RGB, RGBA } |
enum | Encoding { GRAY_8, RGB_15, RGB_16, RGB_24, RGB_24_LE, RGB_24_BE, RGB_32, RGB_32_LE, RGB_32_BE, RGBA_32, RGBA_32_LE, RGBA_32_BE } |
Public Member Functions | |
Bitmap () noexcept | |
Bitmap (const Dimension &dimension, Format format, Encoding encoding, const void *data) | |
Bitmap (const Bitmap ©) noexcept | |
Bitmap & | operator= (const Bitmap &assign) noexcept |
bool | isValid () const noexcept |
Dimension | getDimension () const |
uint32 | getPixel (const Position &position) const |
void | setPixel (const Position &position, uint32 value) const |
enum Bitmap::Encoding |
Pixel encoding.
enum Bitmap::Format |
|
inlinenoexcept |
Initializes bitmap as invalid.
Initializes bitmap.
dimension | The dimension of the bitmap. |
format | The pixel format. |
encoding | The encoding of the pixels. |
data | The bitmap data. |
|
inlinenoexcept |
Initializes bitmap from other bitmap.
Dimension Bitmap::getDimension | ( | ) | const |
Returns the dimension of the bitmap.
uint32 Bitmap::getPixel | ( | const Position & | position | ) | const |
Returns the value of the specified pixel.
|
inlinenoexcept |
Returns true if the bitmap is valid.
void Bitmap::setPixel | ( | const Position & | position, |
uint32 | value | ||
) | const |
Sets the value of the specified pixel.