Error processing SSI file
LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly)

Show in webframe

ConvertToSourceOptions Property (RasterImageListItem)






Options to use when converting a LEADTOOLS Leadtools.RasterImage to a WPF/Silverlight System.Windows.Media.ImageSource. This is a dependency property.
Syntax
public ConvertToSourceOptions ConvertToSourceOptions {get; set;}
'Declaration
 
Public Property ConvertToSourceOptions As ConvertToSourceOptions
'Usage
 
Dim instance As RasterImageListItem
Dim value As ConvertToSourceOptions
 
instance.ConvertToSourceOptions = value
 
value = instance.ConvertToSourceOptions

            

            
public:
property ConvertToSourceOptions ConvertToSourceOptions {
   ConvertToSourceOptions get();
   void set (    ConvertToSourceOptions value);
}

Property Value

One or more Leadtools.Windows.Media.ConvertToSourceOptions 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 ConvertToSourceOptions.UseSetSource.
Remarks

When the value of the Image property changes to a valid image, the values of Source will contain the WPF/Silverlight equivalent image.

In WPF/Silverlight, an image that is displayed must be an System.Windows.Media.ImageSource or one of its derived classes, the RasterImageListItem control keeps the ImageListItem.Source property synchronized with RasterImageListItem.Image, any changes that occur to the LEADTOOLS Leadtools.RasterImage is reflected in the Source property and a standard System.Windows.FrameworkPropertyMetadata.AffectsMeasure or System.Windows.FrameworkPropertyMetadata.AffectsRender is performed. Also, this control will subscribe to the RasterImage.Changed to monitor any changes that may occur to the image (through image processing for example) and reflect these changes to the Source property.

If the Source property is changed, the RasterImageListItem 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.ConvertToSource to convert the LEADTOOLS Leadtools.RasterImage to a WPF/Silverlight System.Windows.Media.ImageSource. The value of the ConvertToSourceOptions property is used as the options parameter to this method.

This control uses the LEADTOOLS Leadtools.Codecs.RasterImageTypeConverter when loading a Leadtools.RasterImage from a XAML file. Refer to that class for more information and examples.

Example

For XAML example, refer to RasterImageListItem.

For C#/VB examples, refer to RasterImageListItem.

Requirements

Target Platforms

See Also

Reference

RasterImageListItem Class
RasterImageListItem Members

Error processing SSI file