Write PNG image files. More...
#include <Raster/PngWriter.H>
Public Member Functions | |
virtual std::string | writeFrame (const GenericFrame &image, const std::string &fname) |
Write the frame to disk. | |
Static Public Member Functions | |
static void | writeRGB (const Image< PixRGB< byte > > &image, const std::string &fname) |
static void | writeGray (const Image< byte > &image, const std::string &fname) |
Write PNG image files.
Definition at line 50 of file PngWriter.H.
std::string PngWriter::writeFrame | ( | const GenericFrame & | image, | |
const std::string & | fname | |||
) | [virtual] |
Write the frame to disk.
Implements RasterWriter.
Definition at line 298 of file PngWriter.C.
References GenericFrame::asGrayF32(), GenericFrame::asGrayU8(), GenericFrame::asRgbU8(), FLOAT_NORM_0_255, FLOAT_NORM_PRESERVE, GenericFrame::floatFlags(), GenericFrame::GRAY_F32, GenericFrame::GRAY_U16, GenericFrame::GRAY_U8, GenericFrame::nativeType(), GenericFrame::NONE, GenericFrame::RGB_F32, GenericFrame::RGB_U16, GenericFrame::RGB_U8, and GenericFrame::RGBD.