Method | Description | |
---|---|---|
CanConvertFrom ( ITypeDescriptorContext context, |
Gets a value indicating that this converter can convert from the source type to an image
|
|
CanConvertTo ( ITypeDescriptorContext context, |
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
|
Method | Description | |
---|---|---|
IsIcon ( string fileName ) : bool |
Determines whether the specified fileName is an icon (ends with .ico)
|
Method | Description | |
---|---|---|
LoadImage ( NamespaceInfo ns ) : Image | ||
LoadImage ( Stream stream ) : Image | ||
LoadImage ( string resourceName ) : Image |
public CanConvertFrom ( ITypeDescriptorContext context, |
||
context | ITypeDescriptorContext | Conversion context |
sourceType | Type to convert from | |
return | bool |
public CanConvertTo ( ITypeDescriptorContext context, |
||
context | ITypeDescriptorContext | Conversion context |
destinationType | Type to convert to | |
return | bool |
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 |
return | object |
protected IsIcon ( string fileName ) : bool | ||
fileName | string | File name. |
return | bool |