Interface IFileTypeSaver
- Namespace
- PaintDotNet.FileTypes
- Assembly
- PaintDotNet.FileTypes.dll
Represents an object that can save an IReadOnlyFileTypeDocument to a Stream.
public interface IFileTypeSaver : IObjectRef, IIsDisposed, IDisposable, IInternalImpl
- Inherited Members
- Extension Methods
Remarks
This is a single-use object. The Save method may only be called once.
Methods
- CreateDefaultSaveOptions()
Creates the default save options for this file type.
- CreateSaveOptionsControl()
Creates a control that allows the user to configure the save options.
- CreateSaveOptionsForDocument(IReadOnlyFileTypeDocument, IFileTypeSaveOptions, IReadOnlyFileTypePropertyBag)
Customizes the proposed save options for the given document. This allows the FileType to inspect the document and adjust the options accordingly. This is typically used with special metadata that was provided at load time by the same FileType.
- Save(Stream, IReadOnlyFileTypeDocument, IFileTypeSaveOptions, ProgressEventHandler?)
Saves the specified document to the output stream.