You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This class contains a minimal Portable Network Graphics (PNG) parser which can be used to read any RGBA PNG image file into memory. It is based on the picoPNG parser by Lode Vandevenne.
Definition
class PNGImage
'''Constructor''' PNGImage( const std::string& file) opens the specified filename as PNG and allocates a suitable memory block for the raw image data.
Methods
unsigned char* data() returns a pointer to the data block.
int width(), int height() return the dimensions of the image.