←Select platform

Image Property

Summary

Image to be displayed in the viewer (single item mode).

Syntax
C#
C++/CLI
public virtual RasterImage Image { get; set; } 
public:  
   virtual property RasterImage^ Image 
   { 
      RasterImage^ get() 
      void set(RasterImage^ value) 
   } 

Property Value

The image to be displayed in the viewer (single item mode). Default value is null.

Remarks

This is a helper property for applications that uses ImageViewer in single item mode. It is a shortcut to Image of ActiveItem. For more information, refer to Image Viewer in Single Item Mode.

Example
C#
using Leadtools; 
using Leadtools.Controls; 
using Leadtools.Codecs; 
using Leadtools.Drawing; 
 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
using Leadtools.Svg; 
 
public void ImageViewerItemImage_Example() 
{ 
   ImageViewerItem item = _imageViewer.GetLargestVisibleItem(ImageViewerItemPart.Content); 
   if (item != null) 
   { 
      var image = item.Image.Clone(); 
      new InvertCommand().Run(image); 
      item.Image = image; 
      item.SvgDocument = null; 
   } 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.