PeachImage
PeachImage
ImageFormatInfo Struct
Capability and identity metadata for a single image format, independent of any particular image.
public readonly record struct ImageFormatInfo : System.IEquatable<PeachImage.ImageFormatInfo>
Implements System.IEquatable<ImageFormatInfo>
| Constructors | |
|---|---|
| ImageFormatInfo(string, IReadOnlyList<string>, IReadOnlyList<string>, bool, bool, bool, bool) | Capability and identity metadata for a single image format, independent of any particular image. |
| Properties | |
|---|---|
| CanDecode | Whether Load(Stream, DecoderOptions) can decode this format. |
| CanDecodeTransparency | Whether decoding this format can produce alpha/transparency from an existing file. |
| CanEncode | Whether Save(Stream, string, EncoderOptions) can encode this format. |
| CanEncodeTransparency | Whether encoding this format can preserve alpha/transparency from an alpha-bearing source. |
| FileExtensions | File extensions (without the leading dot) commonly associated with this format. |
| FormatName | The name of the format, e.g. "jpeg" — matches FormatName. |
| MimeTypes | MIME types commonly associated with this format. |