Method SaveAsMultipageTiffBytes
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
pagesImageBuffer[]The images to include as pages, in order.
Returns
- byte[]
A byte array containing the multipage TIFF-encoded data.
Exceptions
- ArgumentNullException
Thrown if
pagesor one of its entries isnull.- ArgumentException
Thrown if
pagesis empty.- InvalidOperationException
Thrown if encoding fails.