←Select platform

ConvertFromSourceOptions Property (RasterImageViewer)

Summary

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

Syntax

C#
VB
C++
public Leadtools.Windows.Media.ConvertFromSourceOptions ConvertFromSourceOptions {get; set;}
Public Property ConvertFromSourceOptions As Leadtools.Windows.Media.ConvertFromSourceOptions

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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Windows.Controls Assembly
Click or drag to resize