openMSX
Classes | Namespaces | Functions
PNG.cc File Reference
#include "PNG.hh"
#include "SDLSurfacePtr.hh"
#include "MSXException.hh"
#include "File.hh"
#include "StringOp.hh"
#include "build-info.hh"
#include "Version.hh"
#include "vla.hh"
#include "cstdiop.hh"
#include <cassert>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <png.h>
#include <SDL.h>
Include dependency graph for PNG.cc:

Go to the source code of this file.

Classes

struct  openmsx::PNG::PNGReadHandle
 
struct  openmsx::PNG::PNGWriteHandle
 

Namespaces

 openmsx
 Thanks to enen for testing this on a real cartridge:
 
 openmsx::PNG
 Utility functions to hide the complexity of saving to a PNG file.
 

Functions

SDLSurfacePtr openmsx::PNG::load (const std::string &filename, bool want32bpp)
 Load the given PNG file in a SDL_Surface. More...
 
void openmsx::PNG::save (SDL_Surface *surface, const std::string &filename)
 
void openmsx::PNG::save (unsigned width, unsigned height, const void **rowPointers, const SDL_PixelFormat &format, const std::string &filename)
 
void openmsx::PNG::save (unsigned width, unsigned height, const void **rowPointers, const std::string &filename)
 
void openmsx::PNG::saveGrayscale (unsigned width, unsigned height, const void **rowPointers, const std::string &filename)