Table of Contents

Method OnSave

Namespace
PaintDotNet.FileTypes
Assembly
PaintDotNet.FileTypes.dll

OnSave(IFileTypeSaveContext)

Implemented by the derived class to perform the actual saving operation.

protected abstract void OnSave(IFileTypeSaveContext context)

Parameters

context IFileTypeSaveContext

The save context providing the output stream, input document, options, and progress callback.

The input document will consist of a single layer unless the PaintDotNet.FileTypes.FileTypeSaver.FileType set its FileTypeOptions.SupportsLayers to true.

The options are defined by the CreateDefaultSaveOptions() method. If the PaintDotNet.FileTypes.FileTypeSaver.FileType does not support configurable saving then the options must be ignored.