Skip to content

libsimplegl PicoPNG

Unknown edited this page Apr 25, 2013 · 2 revisions

Description

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.
TISCH