LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly)
LEAD Technologies, Inc

ConvertFromSourceOptions Property (RasterImageViewer)






Options to use when converting a WPF/Silverlight System.Windows.Media.ImageSource to a LEADTOOLS Leadtools.RasterImage. This is a dependency property. .NET support Silverlight support
Syntax
public ConvertFromSourceOptions ConvertFromSourceOptions {get; set;}
'Declaration
 
Public Property ConvertFromSourceOptions As ConvertFromSourceOptions
'Usage
 
Dim instance As RasterImageViewer
Dim value As ConvertFromSourceOptions
 
instance.ConvertFromSourceOptions = value
 
value = instance.ConvertFromSourceOptions
public ConvertFromSourceOptions ConvertFromSourceOptions {get; set;}
 get_ConvertFromSourceOptions();
set_ConvertFromSourceOptions(value);
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.
Remarks

If the Source property is changed, the RasterImageViewer 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.

Example

For C#/VB examples, refer to UpdateImageFromSource.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterImageViewer Class
RasterImageViewer Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.