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

Image Property (RasterImageListItem)






Gets or sets the Leadtools.RasterImage to be displayed in this control. This is a dependency property. .NET support Silverlight support
Syntax
[TypeConverterAttribute("Leadtools.Codecs.RasterImageTypeConverter, Leadtools.Codecs, Version=17.5.0.0, Culture=neutral, PublicKeyToken=9cf889f53ea9b907")]
public RasterImage Image {get; set;}
'Declaration
 
<TypeConverterAttribute("Leadtools.Codecs.RasterImageTypeConverter, Leadtools.Codecs, Version=17.5.0.0, Culture=neutral, PublicKeyToken=9cf889f53ea9b907")>
Public Property Image As RasterImage
'Usage
 
Dim instance As RasterImageListItem
Dim value As RasterImage
 
instance.Image = value
 
value = instance.Image
[TypeConverterAttribute("Leadtools.Codecs.RasterImageTypeConverter, Leadtools.Codecs, Version=17.5.0.0, Culture=neutral, PublicKeyToken=9cf889f53ea9b907")]
public RasterImage Image {get; set;}
TypeConverterAttribute("Leadtools.Codecs.RasterImageTypeConverter, Leadtools.Codecs, Version=17.5.0.0, Culture=neutral, PublicKeyToken=9cf889f53ea9b907")
 get_Image();
set_Image(value);
[TypeConverterAttribute("Leadtools.Codecs.RasterImageTypeConverter, Leadtools.Codecs, Version=17.5.0.0, Culture=neutral, PublicKeyToken=9cf889f53ea9b907")]
public:
property RasterImage^ Image {
   RasterImage^ get();
   void set (    RasterImage^ value);
}

Property Value

The LEADTOOLS Leadtools.RasterImage object to be displayed in this control. The default value is a null reference (Nothing in Visual Basic).
Remarks

When the value of the Image property changes to a valid image, the values of Source will contain the WPF/Silverlight equivalant 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: 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

RasterImageListItem Class
RasterImageListItem Members

 

 


Products | Support | Contact Us | Copyright Notices

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