AdvancedImageConverter.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)

KGy SOFT Drawing Libraries

AdvancedImageConverterConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type) KGy SOFT Drawing Libraries Help
Converts an Image (or an object that can be cast to an Image) to the specified type.

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 4.6.0
Syntax

public override Object ConvertTo(
	ITypeDescriptorContext context,
	CultureInfo culture,
	Object value,
	Type destinationType
)
Public Overrides 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
) override
abstract ConvertTo : 
        context : ITypeDescriptorContext * 
        culture : CultureInfo * 
        value : Object * 
        destinationType : Type -> Object 
override ConvertTo : 
        context : ITypeDescriptorContext * 
        culture : CultureInfo * 
        value : Object * 
        destinationType : Type -> Object 

Parameters

context
Type: System.ComponentModelITypeDescriptorContext
An ITypeDescriptorContext that provides a format context. In this converter this parameter is ignored.
culture
Type: System.GlobalizationCultureInfo
A CultureInfo. In this converter this parameter is ignored.
value
Type: SystemObject
The Image to convert.
destinationType
Type: SystemType
The Type to convert the Image to. This type converter supports byte[] type.

Return Value

Type: Object
An Object that represents the converted value.
See Also

Reference