AdvancedImageConverter Class

Provides a converter for Image instances that can preserve the original format of images better than the ImageConverter class when converting Bitmap, Metafile and Icon images.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 8.1.0
C#
public class AdvancedImageConverter : ImageConverter
Inheritance
Object    TypeConverter    ImageConverter    AdvancedImageConverter

Remarks

  Note

This class is available in the .NET Framework and .NET Core 3.0 or later versions.

  Note

When targeting .NET 7.0 or later versions this class is supported on Windows only.

Constructors

AdvancedImageConverterInitializes a new instance of the AdvancedImageConverter class

Methods

ConvertFrom Converts a specified object to an Image.
(Overrides ImageConverterConvertFrom(ITypeDescriptorContext, CultureInfo, Object))
ConvertTo Converts an Image (or an object that can be cast to an Image) to the specified type.
(Overrides ImageConverterConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type))

See Also