54 virtual const uint8_t*
pixels()
const = 0;
Containing the pixel data of an image file.
static std::unique_ptr< ImageData > load(const std::string &filename, double scaleHint=1.)
Passing a filename will load the specified filename.
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 getImageHeight() const =0
If the image has been scaled by getScaleFactor() this will return the original image height.
virtual int getHeight() const =0
Returns the height of the image in pixels.
virtual int getImageWidth() const =0
If the image has been scaled by getScaleFactor() this will return the original image width.