<PackageReference Include="System.Drawing.Common" Version="9.0.0-preview.7.24405.4" />

ImageCodecInfo

public sealed class ImageCodecInfo
The ImageCodecInfo class provides the necessary storage members and methods to retrieve all pertinent information about the installed image encoders and decoders (called codecs). Not inheritable.
using System.Runtime.CompilerServices; namespace System.Drawing.Imaging { [System.Runtime.CompilerServices.NullableContext(2)] [System.Runtime.CompilerServices.Nullable(0)] public sealed class ImageCodecInfo { public Guid Clsid { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public string CodecName { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public string DllName { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public string FilenameExtension { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public ImageCodecFlags Flags { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public string FormatDescription { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public Guid FormatID { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public string MimeType { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } [System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1 })] [CLSCompliant(false)] public byte[][] SignatureMasks { [return: System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1 })] get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } [param: System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1 })] set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } [System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1 })] [CLSCompliant(false)] public byte[][] SignaturePatterns { [return: System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1 })] get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } [param: System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1 })] set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public int Version { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } internal ImageCodecInfo() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } [System.Runtime.CompilerServices.NullableContext(1)] public static ImageCodecInfo[] GetImageDecoders() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } [System.Runtime.CompilerServices.NullableContext(1)] public static ImageCodecInfo[] GetImageEncoders() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } }