class P1::ImageSdk::JpegWriter

Overview

#include <P1ImageJpegWriter.hpp>

class JpegWriter
{
public:
    // construction

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

    JpegWriter(
        std::string filename,
        P1::ImageSdk::BitmapImage& bitmap,
        P1::ImageSdk::RawImage& image,
        P1::ImageSdkC::P1MetaDataBase& metadata,
        JpegConfig& config
        );
};

Detailed Documentation

Construction

JpegWriter(
    std::string filename,
    P1::ImageSdk::BitmapImage& bitmap,
    P1::ImageSdk::RawImage& image,
    JpegConfig& config
    )

Writes a JPEG file to the disk synchronously.

Parameters:

filename

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

bitmap

The rendered bitmap

image

The raw image’s in memory representation

config

Describes the JPEG metadata/preview

SDKException

The function will throw an exception in case of failure.

JpegWriter(
    std::string filename,
    P1::ImageSdk::BitmapImage& bitmap,
    P1::ImageSdk::RawImage& image,
    P1::ImageSdkC::P1MetaDataBase& metadata,
    JpegConfig& config
    )

Writes a JPEG file to the disk synchronously.

Parameters:

filename

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

bitmap

The rendered bitmap

image

The raw image’s in memory representation

metadata

The metadatabase to writen into the image file.

config

Describes the JPEG metadata/preview

SDKException

The function will throw an exception in case of failure.