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
outputStream- The stream to write the image data to.
documentIReadOnlyFileTypeDocument- The document containing the image data to save.
optionsIFileTypeSaveOptions- The save options to use.
progressCallbackProgressEventHandler- An optional callback to report save progress.