AdvancedImageConverterConvertTo Method
Converts an
Image (or an object that can be cast to an
Image) to the specified type.
Namespace: KGySoft.ComponentModelAssembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 9.0.0
public virtual Object ConvertTo(
ITypeDescriptorContext? context,
CultureInfo? culture,
Object? value,
Type destinationType
)
Public Overridable Function ConvertTo (
context As ITypeDescriptorContext,
culture As CultureInfo,
value As Object,
destinationType As Type
) As Object
public:
virtual Object^ ConvertTo(
ITypeDescriptorContext^ context,
CultureInfo^ culture,
Object^ value,
Type^ destinationType
)
abstract ConvertTo :
context : ITypeDescriptorContext *
culture : CultureInfo *
value : Object *
destinationType : Type -> Object
override ConvertTo :
context : ITypeDescriptorContext *
culture : CultureInfo *
value : Object *
destinationType : Type -> Object
- context ITypeDescriptorContext
- An ITypeDescriptorContext that provides a format context. In this converter this parameter is ignored.
- culture CultureInfo
- A CultureInfo. In this converter this parameter is ignored.
- value Object
- The Image to convert.
- destinationType Type
- The Type to convert the Image to.
This type converter supports byte[] type.
ObjectAn
Object that represents the converted value.