Table of Contents

Class FileType

Namespace
PaintDotNet
Assembly
PaintDotNet.Data.dll

Represents one type of file that PaintDotNet can load or save.

public abstract class FileType : IEquatable<FileType>
Inheritance
FileType
Implements
Derived
Inherited Members
Extension Methods

Constructors

FileType(string, FileTypeOptions)

Properties

Name

Returns the friendly name of the file type, such as "Bitmap" or "JPEG".

Options
SupportsConfiguration

Gets a flag indicating whether or not the file type supports configuration via a SaveConfigToken and SaveConfigWidget.

Methods

CreateDefaultSaveConfigToken()
CreateSaveConfigWidget()
Equals(FileType?)
Equals(object?)
GetHashCode()
GetLastSaveConfigToken()
GetOpenDialogFilterText()

Returns a string that can be used for populating an OpenFileDialog's Filter property.

GetSaveConfigTokenFromSerializablePortion(object)
GetSaveDialogFilterText()

Returns a string that can be used for populating a SaveFileDialog's Filter property.

GetSerializablePortionOfSaveConfigToken(SaveConfigToken)
Load(Stream)
OnCreateDefaultSaveConfigToken()

Creates a SaveConfigToken for this FileType with the default values.

OnLoad(Stream)
OnSave(Document, Stream, SaveConfigToken, Surface, ProgressEventHandler)
Quantize(Surface, int, int, bool, ProgressEventHandler?)

Takes a Surface and quantizes it down to an 8-bit bitmap.

Save(Document, Stream, SaveConfigToken, Surface?, ProgressEventHandler?, bool)

Operators

operator ==(FileType?, FileType?)
operator !=(FileType?, FileType?)