#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>
Go to the source code of this file.
Namespaces |
| namespace | openmsx |
| | Thanks to enen for testing this on a real cartridge:
|
| namespace | 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.
|
| 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) |