30 virtual const uint8_t*
pixels()
const = 0;
Containing the pixel data of an image file.
virtual const uint8_t * pixels() const =0
RGBA values ordered row-major.
virtual int getWidth() const =0
Returns the width of the image in pixels.
virtual int getHeight() const =0
Returns the height of the image in pixels.
static std::unique_ptr< ImageData > load(const std::string &filename)
Passing a filename will load the specified filename.