C# Class Eto.Drawing.ImageConverter

Converter to convert a string to an Image
Inheritance: System.ComponentModel.TypeConverter
Afficher le fichier Open project: picoe/Eto Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
IsIcon ( string fileName ) : bool

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

Private Methods

Méthode Description
LoadImage ( NamespaceInfo ns ) : Image
LoadImage ( Stream stream ) : Image
LoadImage ( string resourceName ) : Image

Method Details

CanConvertFrom() public méthode

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
Résultat bool

CanConvertTo() public méthode

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
Résultat bool

ConvertFrom() public méthode

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
Résultat object

IsIcon() protected méthode

Determines whether the specified fileName is an icon (ends with .ico)
protected IsIcon ( string fileName ) : bool
fileName string File name.
Résultat bool