openMSX
Namespaces | Functions
PNG.hh File Reference
#include "SDLSurfacePtr.hh"
#include <span>
#include <string>
Include dependency graph for PNG.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  openmsx
 This file implemented 3 utility functions:
 
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::saveRGBA (size_t width, std::span< const void * > rowPointers, const std::string &filename)
 
void openmsx::PNG::saveGrayscale (size_t width, std::span< const void * > rowPointers, const std::string &filename)