Function USETools::renderScalableBitmap
Defined in File Tools.h
Function Documentation
-
void USETools::renderScalableBitmap(const std::vector<std::vector<RGBPixel>> &pixelData, float scale = 1.0f)
Render a bitmap.
Note
Rows can be non-homogenous (having every row of a different size is allowed).
- Parameters
pixelData – Bitmap data in a form of: vector of rows, which are vectors of pixels (rows->row->pixel) => pixelData[y][x].
scale – Scale of the bitmap.
- Throws
std::invalid_argument – When pixel data is empty.