Table of Contents

Method SaveAsMultipageTiffBytes

Namespace
LMKit.Media.Image
Assembly
LM-Kit.NET.dll

SaveAsMultipageTiffBytes(params ImageBuffer[])

Encodes multiple images as pages of a single multipage TIFF to a byte array, without writing to disk - the in-memory twin of SaveAsMultipageTiff(string, params ImageBuffer[]). Pages are appended in order through the native streaming TIFF writer, so only bookkeeping - never a second copy of the pixel data - accumulates while encoding.

public static byte[] SaveAsMultipageTiffBytes(params ImageBuffer[] pages)

Parameters

pages ImageBuffer[]

The images to include as pages, in order.

Returns

byte[]

A byte array containing the multipage TIFF-encoded data.

Exceptions

ArgumentNullException

Thrown if pages or one of its entries is null.

ArgumentException

Thrown if pages is empty.

InvalidOperationException

Thrown if encoding fails.

Share