0. Open, convert and export#

This sample code loads an IIQ file and coverts it to 8-bits RGB image, and then exports the bitmap to a tif file.

#include "P1Image.hpp"
#include <iostream>

using namespace P1::ImageSdk;

int main()
{
    try
    {           
        // Read an IIQ file
        RawImage im("Sample.IIQ");

        // Convert
        ConvertConfig config;
        BitmapImage bmp = im.Convert(config);

        // Export to tiff
        TiffWriter("out.tif", bmp, im, TiffConfig());

        return 0;
    }
    catch(const std::exception& e)
    {
        std::cerr << e.what() << '\n';
        return -1;
    }

}
using System;

using P1.ImageSdk;

// Read IIQ file
RawImage im = new("Sample.IIQ");

// Convert IIQ file
ConvertConfig config = new();
BitmapImage bmp = im.Convert(config);

// Export IIQ file
im.WriteAsTiff("out.tiff", bmp, new TiffConfig());

The output image is uncompressed with an 8-bit depth.