UnsupportedImageFeatureException Class

The exception thrown when valid content uses a feature this version does not support (for example a lossless JPEG or a GIF plain-text extension), or when an operation would lose information (animation, alpha, precision, metadata, color profile) and no explicit policy allows the loss.

public class UnsupportedImageFeatureException : ImageException
Inheritance
ImageException UnsupportedImageFeatureException

Constructors

NameDescription
UnsupportedImageFeatureException()Initializes a new instance of the UnsupportedImageFeatureException class.
UnsupportedImageFeatureException(string?)Initializes a new instance of the UnsupportedImageFeatureException class with a message.
UnsupportedImageFeatureException(string?, ImageFormat, string?)Initializes a new instance of the UnsupportedImageFeatureException class for a specific format and feature.
UnsupportedImageFeatureException(string?, Exception?)Initializes a new instance of the UnsupportedImageFeatureException class with a message and an inner exception.

UnsupportedImageFeatureException overloads

UnsupportedImageFeatureException()

UnsupportedImageFeatureException.cs

Initializes a new instance of the UnsupportedImageFeatureException class.

public UnsupportedImageFeatureException()

UnsupportedImageFeatureException(string?)

UnsupportedImageFeatureException.cs

Initializes a new instance of the UnsupportedImageFeatureException class with a message.

public UnsupportedImageFeatureException(string? message)
Parameters
message string?
The error message.

UnsupportedImageFeatureException(string?, ImageFormat, string?)

UnsupportedImageFeatureException.cs

Initializes a new instance of the UnsupportedImageFeatureException class for a specific format and feature.

public UnsupportedImageFeatureException(string? message, ImageFormat format, string? feature)
Parameters
message string?
The error message.
format ImageFormat
The format involved, or ImageFormat.Unknown for format-independent conversions.
feature string?
A short, stable, human-readable feature name (for example "JPEG lossless").

UnsupportedImageFeatureException(string?, Exception?)

UnsupportedImageFeatureException.cs

Initializes a new instance of the UnsupportedImageFeatureException class with a message and an inner exception.

public UnsupportedImageFeatureException(string? message, Exception? innerException)
Parameters
message string?
The error message.
innerException Exception?
The exception that caused this exception.

Properties

NameDescription
FeatureGets a short human-readable name of the unsupported feature, if specified.
FormatGets the format involved, or ImageFormat.Unknown if not specified.

Gets a short human-readable name of the unsupported feature, if specified.

public string? Feature { get; }

Property value

string?

Gets the format involved, or ImageFormat.Unknown if not specified.

public ImageFormat Format { get; }

Property value

ImageFormat