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



codecs
The RasterCodecs object.
Initializes a new instance of the RasterImageTypeConverter class with a given RasterCodecs object.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal codecs As RasterCodecs _
)
Visual Basic (Usage)Copy Code
Dim codecs As RasterCodecs
 
Dim instance As New RasterImageTypeConverter(codecs)
C# 
public RasterImageTypeConverter( 
   RasterCodecs codecs
)
C++/CLI 
public:
RasterImageTypeConverter( 
   RasterCodecs^ codecs
)

Parameters

codecs
The RasterCodecs object.

Example

For an example, refer to RasterImageTypeConverter.

Remarks

The image returned from the ConvertFrom(ITypeDescriptorContext,CultureInfo,Object) method will have its RasterImage.IsLoading property set to true since this method will load the image asynchronously. To get notified when the image has finished loading, create the RasterImageTypeConverter with your own RasterCodecs instance and subscribe to the RasterCodecs.LoadAsyncCompleted event before calling ConvertFrom(ITypeDescriptorContext,CultureInfo,Object) as show in the example of 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