C# Класс Eto.Drawing.ImageConverter

Converter to convert a string to an Image
Наследование: System.ComponentModel.TypeConverter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool

Gets a value indicating that this converter can convert from the source type to an image

CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool

Gets a value indicating that this converter can convert to the specified type.

ConvertFrom ( ITypeDescriptorContext context, System culture, object value ) : object

Performs the conversion from the given value to an Image object

Защищенные методы

Метод Описание
IsIcon ( string fileName ) : bool

Determines whether the specified fileName is an icon (ends with .ico)

Приватные методы

Метод Описание
LoadImage ( NamespaceInfo ns ) : Image
LoadImage ( Stream stream ) : Image
LoadImage ( string resourceName ) : Image

Описание методов

CanConvertFrom() публичный Метод

Gets a value indicating that this converter can convert from the source type to an image
public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext Conversion context
sourceType System.Type Type to convert from
Результат bool

CanConvertTo() публичный Метод

Gets a value indicating that this converter can convert to the specified type.
public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext Conversion context
destinationType System.Type Type to convert to
Результат bool

ConvertFrom() публичный Метод

Performs the conversion from the given value to an Image object
public ConvertFrom ( ITypeDescriptorContext context, System culture, object value ) : object
context ITypeDescriptorContext Conversion context
culture System Culture to perform the conversion
value object Value to convert to an image
Результат object

IsIcon() защищенный Метод

Determines whether the specified fileName is an icon (ends with .ico)
protected IsIcon ( string fileName ) : bool
fileName string File name.
Результат bool