AdvancedImageConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

KGy SOFT Drawing Libraries

AdvancedImageConverterConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object) KGy SOFT Drawing Libraries Help
Converts a specified object to an Image.

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

public override Object ConvertFrom(
	ITypeDescriptorContext context,
	CultureInfo culture,
	Object value
)
Public Overrides Function ConvertFrom ( 
	context As ITypeDescriptorContext,
	culture As CultureInfo,
	value As Object
) As Object
public:
virtual Object^ ConvertFrom(
	ITypeDescriptorContext^ context, 
	CultureInfo^ culture, 
	Object^ value
) override
abstract ConvertFrom : 
        context : ITypeDescriptorContext * 
        culture : CultureInfo * 
        value : Object -> Object 
override ConvertFrom : 
        context : ITypeDescriptorContext * 
        culture : CultureInfo * 
        value : Object -> 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 Object to be converted.

Return Value

Type: Object
If this method succeeds, it returns the Image that it created by converting the specified object. Otherwise, it throws an exception.
See Also

Reference