class P1::ImageSdk::PgmWriter

Overview

Writes a Pgm file to the disk synchronously. More…

#include <P1ImagePgmWriter.hpp>

class PgmWriter
{
public:
    // construction

    PgmWriter(
        std::string filename,
        P1::ImageSdk::BitmapImage& bitmap,
        P1::ImageSdk::RawImage& image
        );
};

Detailed Documentation

Writes a Pgm file to the disk synchronously.

Parameters:

filename

The path to the output file, it may be a single character or wide character string.

bitmap

The rendered bitmap

image

The raw image’s in memory representation

SDKException

The function will throw an exception in case of failure.