C# 클래스 Eto.Drawing.ImageConverter

Converter to convert a string to an Image
상속: System.ComponentModel.TypeConverter
파일 보기 프로젝트 열기: picoe/Eto 1 사용 예제들

공개 메소드들

메소드 설명
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