Method CreateSaveOptionsForDocument
- Namespace
- PaintDotNet.FileTypes
- Assembly
- PaintDotNet.FileTypes.dll
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.
public IFileTypeSaveOptions CreateSaveOptionsForDocument(IReadOnlyFileTypeDocument document, IFileTypeSaveOptions proposedOptions, IReadOnlyFileTypePropertyBag metadataFromLoad)
Parameters
documentIReadOnlyFileTypeDocumentproposedOptionsIFileTypeSaveOptionsmetadataFromLoadIReadOnlyFileTypePropertyBag