# ImageConverter class

Namespace: [Eto.Drawing](https://eto.picoe.ca/api/namespace/eto.drawing.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public class ImageConverter : TypeConverter
```

> **Obsolete:** Since 2.5. Use TypeDescriptor.GetConverter instead

Converter to convert a string to an [Image](https://eto.picoe.ca/api/type/eto.drawing.image.md)

## Fields

- [FilePrefix](https://eto.picoe.ca/api/type/eto.drawing.imageconverter/fileprefix.md): (static) Prefix to use to load an image from a file path
- [ResourcePrefix](https://eto.picoe.ca/api/type/eto.drawing.imageconverter/resourceprefix.md): (static) Prefix to use to load an image from a resource of an assembly

## Methods

- [CanConvertFrom](https://eto.picoe.ca/api/type/eto.drawing.imageconverter/canconvertfrom.md): Gets a value indicating that this converter can convert from the source type to an image
- [CanConvertTo](https://eto.picoe.ca/api/type/eto.drawing.imageconverter/canconvertto.md): Gets a value indicating that this converter can convert to the specified type.
- [ConvertFrom](https://eto.picoe.ca/api/type/eto.drawing.imageconverter/convertfrom.md): Performs the conversion from the given `value` to an [Image](https://eto.picoe.ca/api/type/eto.drawing.image.md) object
- [IsIcon](https://eto.picoe.ca/api/type/eto.drawing.imageconverter/isicon.md): Determines whether the specified fileName is an icon (ends with .ico)

## Inherited Members

- From [TypeConverter](https://eto.picoe.ca/api/type/eto.typeconverter.md): [CanConvertFrom](https://eto.picoe.ca/api/type/eto.typeconverter/canconvertfrom.md), [CanConvertTo](https://eto.picoe.ca/api/type/eto.typeconverter/canconvertto.md), [ConvertFrom](https://eto.picoe.ca/api/type/eto.typeconverter/convertfrom.md), [ConvertFromInvariantString](https://eto.picoe.ca/api/type/eto.typeconverter/convertfrominvariantstring.md), [ConvertFromString](https://eto.picoe.ca/api/type/eto.typeconverter/convertfromstring.md), [ConvertTo](https://eto.picoe.ca/api/type/eto.typeconverter/convertto.md), [ConvertToInvariantString](https://eto.picoe.ca/api/type/eto.typeconverter/converttoinvariantstring.md), [ConvertToString](https://eto.picoe.ca/api/type/eto.typeconverter/converttostring.md), [GetConvertFromException](https://eto.picoe.ca/api/type/eto.typeconverter/getconvertfromexception.md), [GetConvertToException](https://eto.picoe.ca/api/type/eto.typeconverter/getconverttoexception.md), [IsValid](https://eto.picoe.ca/api/type/eto.typeconverter/isvalid.md)
