2D-array of pixels specified format.
More...
#include <draw.h>
|
static const uint32_t | kMaxSize = 4096 |
| maximum available size of image's width and height More...
|
|
2D-array of pixels specified format.
To create an object of this type use Renderer::makeImage function.
NOTE: exceptions are disabled. 'Exceptions' section lists expected errors which you can check via draw::getLastError.
A pixel format.
Enumerator |
---|
A |
1 byte per pixel (alpha only)
|
RGB |
3 bytes per pixel (1-red, 1-green, 1-blue)
|
RGBA |
4 bytes per pixel (1-red, 1-green, 1-blue, 1-alpha)
|
virtual draw::Image::~Image |
( |
| ) |
|
|
virtualdefault |
virtual bool draw::Image::filter |
( |
| ) |
const |
|
pure virtual |
check if bilinear filtering is enabled or not
virtual Format draw::Image::format |
( |
| ) |
const |
|
pure virtual |
virtual const Size& draw::Image::size |
( |
| ) |
const |
|
pure virtual |
virtual void draw::Image::upload |
( |
Bytes |
bytes | ) |
|
|
pure virtual |
upload bytes to the image
- Exceptions
-
const uint32_t draw::Image::kMaxSize = 4096 |
|
static |
maximum available size of image's width and height
The documentation for this class was generated from the following file: