class P1::ImageSdk::TiffWriter

Overview

Writes a Tiff file to the disk synchronously. More…

#include <P1ImageTiffWriter.hpp>

class TiffWriter
{
public:
    // construction

    TiffWriter(
        std::string filename,
        P1::ImageSdk::BitmapImage& bitmap,
        P1::ImageSdk::RawImage& image,
        TiffConfig& config
        );

    TiffWriter(
        std::wstring filename,
        P1::ImageSdk::BitmapImage& bitmap,
        P1::ImageSdk::RawImage& image,
        TiffConfig& config
        );
};

Detailed Documentation

Writes a Tiff 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

config

Describes the TIFF metadata/preview

SDKException

The function will throw an exception in case of failure.