Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ImageConverter::ConvertFrom Method (ITypeDescriptorContext^, CultureInfo^, Object^)

 

Converts a specified object to an Image.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public:
virtual Object^ ConvertFrom(
	ITypeDescriptorContext^ context,
	CultureInfo^ culture,
	Object^ value
) override

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

An ITypeDescriptorContext that provides a format context.

culture
Type: System.Globalization::CultureInfo^

A CultureInfo that holds information about a specific culture.

value
Type: System::Object^

The Object to be converted.

Return Value

Type: System::Object^

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

Exception Condition
NotSupportedException

The conversion cannot be completed.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft