LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
ConvertFrom(ITypeDescriptorContext,CultureInfo,Object) Method
See Also 
Leadtools.Codecs Namespace > RasterImageTypeConverter Class > ConvertFrom Method : ConvertFrom(ITypeDescriptorContext,CultureInfo,Object) Method



context
Type context information used for conversion.
culture
Cultural information that is respected during conversion.
value
The object being converted.
context
Type context information used for conversion.
culture
Cultural information that is respected during conversion.
value
The object being converted.
Attempts to convert a specified object to an instance of Leadtools.RasterImage.

Syntax

Visual Basic (Declaration) 
Overloads Overrides Public Function ConvertFrom( _
   ByVal context As ITypeDescriptorContext, _
   ByVal culture As CultureInfo, _
   ByVal value As Object _
) As Object
Visual Basic (Usage)Copy Code
Dim instance As RasterImageTypeConverter
Dim context As ITypeDescriptorContext
Dim culture As CultureInfo
Dim value As Object
Dim value As Object
 
value = instance.ConvertFrom(context, culture, value)
C# 
public override object ConvertFrom( 
   ITypeDescriptorContext context,
   CultureInfo culture,
   object value
)
C++/CLI 
public:
Object^ ConvertFrom( 
   ITypeDescriptorContext^ context,
   CultureInfo^ culture,
   Object^ value
) override 

Parameters

context
Type context information used for conversion.
culture
Cultural information that is respected during conversion.
value
The object being converted.

Return Value

A new instance of Leadtools.RasterImage.

Example

For an example, refer to RasterImageTypeConverter.

Remarks

The ConvertFrom(ITypeDescriptorContext,CultureInfo,Object) method will try to convert the object passed into the value parameter to a valid Leadtools.RasterImage object. For more information, refer to RasterImageTypeConverter.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also