LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
ConvertFromSourceOptions Property
See Also 
Leadtools.Windows.Controls Namespace > RasterImageBox Class : ConvertFromSourceOptions Property



Options to use when converting a WPF/Silverlight System.Windows.Media.ImageSource to a LEADTOOLS Leadtools.RasterImage. This is a dependency property. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property ConvertFromSourceOptions As ConvertFromSourceOptions
Visual Basic (Usage)Copy Code
Dim instance As RasterImageBox
Dim value As ConvertFromSourceOptions
 
instance.ConvertFromSourceOptions = value
 
value = instance.ConvertFromSourceOptions
C# 
public ConvertFromSourceOptions ConvertFromSourceOptions {get; set;}
C++/CLI 
public:
property ConvertFromSourceOptions ConvertFromSourceOptions {
   ConvertFromSourceOptions get();
   void set (    ConvertFromSourceOptions value);
}

Property Value

One or more Leadtools.Windows.Media.ConvertFromSourceOptions enumeration members that specifies the options to use when this control must converts a LEADTOOLS Leadtools.RasterImage to a WPF/Silverlight System.Windows.Media.ImageSource. Default value is ConvertFromSourceOptions.None.

Example

For C#/VB examples, refer to UpdateImageFromSource.

Remarks

If the Source property is changed, the RasterImageBox must be informed so it can reflect the changes into the Image object. The UpdateImageFromSource can be used to perform this task.

The control uses the RasterImageConverter.ConvertFromSource to convert the WPF/Silverlight System.Windows.Media.ImageSource to LEADTOOLS Leadtools.RasterImage. The value of the ConvertFromSourceOptions property is used as the options parameter to this method.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also