New to Telerik UI for WinFormsStart a free 30-day trial

Thrown when image bytes are malformed or unsupported during import or decoding.

Definition

Constructors

Create an instance indicating invalid or unreadable image content.

C#
public InvalidImageDataException()

Initializes a new instance of the InvalidImageDataException class.

C#
protected InvalidImageDataException(SerializationInfo info, StreamingContext context)
Parameters:infoSerializationInfo

The info.

contextStreamingContext

The context.

Create an instance with a specific error message and inner exception.

C#
public InvalidImageDataException(string message, Exception cause)
Parameters:messagestring

The message.

causeException

The cause.

Create an instance with a specific error message.

C#
public InvalidImageDataException(string message)
Parameters:messagestring

The message that describes the error.