AdvancedImageConverterConvertTo Method

Converts an Image (or an object that can be cast to an Image) to the specified type.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 8.1.0
C#
public override Object ConvertTo(
	ITypeDescriptorContext? context,
	CultureInfo? culture,
	Object? value,
	Type destinationType
)

Parameters

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.

Return Value

Object
An Object that represents the converted value.

See Also