VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.UI Namespace / ImageViewer Class
Members Example



In This Topic
    ImageViewer Class
    In This Topic
    Viewer control for displaying an image collection.
    Object Model
    ImageViewer ClassThumbnailAppearance ClassVintasoftImage ClassThumbnailAppearance ClassDecodingSettings ClassRenderingSettings ClassImageCollection ClassVintasoftImage ClassImageViewerBase ClassPaddingF StructureImageRenderingRequirements ClassImageViewerState ClassVisualTool Class
    Syntax
    'Declaration
     
    Public Class ImageViewer 
       Inherits ImageViewerBase
    public class ImageViewer : ImageViewerBase 
    public __gc class ImageViewer : public ImageViewerBase 
    public ref class ImageViewer : public ImageViewerBase 
    Remarks
    ImageViewer allows to:
    • Preview image using different size modes
    • Scroll and zoom image
    • Magnify image
    • Select rectangular or custom image region
    • Copy/cut/paste image
    • Scale to gray (antialiasing) option for black-white images
    • Enable/disable buffering

    Supported size modes:

    ImageViewer has the image collection (the ImageViewerBase.Images property) which stores images associated with this viewer.

    ImageViewer can work separately (viewer will have own image collection) or as a slave viewer of another viewer (viewer will use the image collection of master viewer).
    Example
    Class ImageViewerExample
        Private _thumbnailViewer1 As Vintasoft.Imaging.UI.ThumbnailViewer = Nothing
        Private _imageViewer1 As Vintasoft.Imaging.UI.ImageViewer = Nothing
                
        Public Sub RunExample()
            _thumbnailViewer1.MasterViewer = _imageViewer1
            _imageViewer1.Images.Add("c:\multipage.tiff")
        End Sub
    End Class
    class ImageViewerExample
    {
        Vintasoft.Imaging.UI.ThumbnailViewer _thumbnailViewer1 = null;
        Vintasoft.Imaging.UI.ImageViewer _imageViewer1 = null;
                
        public void RunExample()
        {
            _thumbnailViewer1.MasterViewer = _imageViewer1;
            _imageViewer1.Images.Add(@"c:\multipage.tiff");
        }
    }
    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.ComponentModel.Component
             System.Windows.Forms.Control
                System.Windows.Forms.ScrollableControl
                   Vintasoft.Imaging.UI.ImageViewerBase
                      Vintasoft.Imaging.UI.ImageViewer
                         Vintasoft.Imaging.Annotation.UI.AnnotationViewer
                         Vintasoft.Imaging.UI.AnimatedImageViewer

    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also