Table of Contents

Method Save

Namespace
PaintDotNet.FileTypes
Assembly
PaintDotNet.FileTypes.dll

Save(Stream, IReadOnlyFileTypeDocument, IFileTypeSaveOptions, ProgressEventHandler?)

Saves the specified document to the output stream.

public void Save(Stream output, IReadOnlyFileTypeDocument document, IFileTypeSaveOptions options, ProgressEventHandler? progressCallback = null)

Parameters

output Stream
The stream to write the image data to.
document IReadOnlyFileTypeDocument
The document containing the image data to save.
options IFileTypeSaveOptions
The save options to use.
progressCallback ProgressEventHandler
An optional callback to report save progress.