Utility class used to perform PNG image operations in software.
decoder-png
optional module.#include <graphics/YiBitmapUtilitiesPNG.h>
Static Public Member Functions | |
static bool | SavePNG (const CYIBitmap *pBitmap, const CYIString &filename) |
static bool | BitmapToPNG (const CYIBitmap *pBitmap, std::vector< uint8_t > *pOut) |
|
static |
Converts pBitmap to a PNG vector.
Returns true if the conversion is successful. Returns false if pBitmap is not a 32-bit image or if the conversion fails.
|
static |
Save pBitmap to a file named filename. This function only works for 32-bit images.
Returns true if the file was successfully saved. Returns false if the saves fails. Returns false if pBitmap is not a 32-bit image.