ImageExtensionsSaveAsMultipageTiff(IEnumerableImage, Stream) Method

Saves the provided images as a multi-page TIFF into the specified Stream. When Image instances in images already contain multiple pages, only the current page is taken.

Definition

Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 8.1.0
C#
public static void SaveAsMultipageTiff(
	this IEnumerable<Image> images,
	Stream stream
)

Parameters

images  IEnumerableImage
The images to save into the TIFF data stream.
stream  Stream
The stream into the TIFF data is to be saved.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableImage. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

When images contain multi-page instances, this method takes only the current page. You can extract images by the ExtractBitmaps extension method.

  Note

On non-Windows platform this method may throw a NotSupportedException if images has multiple elements.

See Also