VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
In This Topic
    View images in WinForms
    In This Topic
    ImageViewer is a WinForms control, designed to display collection of images.

    ImageViewer can work separately and in this case
    ImageViewer can work as a slave viewer of another ImageViewer or ThumbnailViewer and in this case
    Here is C#/VB.NET code that shows how to load images to ImageViewer and select the last image for displaying:
    imageViewer1.Images.Add("myimages.tif");
    imageViewer1.FocusedIndex = imageViewer1.Images.Count - 1;
    
    imageViewer1.Images.Add("myimages.tif")
    imageViewer1.FocusedIndex = imageViewer1.Images.Count - 1
    


    Preview of images

    Image viewer display mode

    ImageViewer can display one or several images simulateously.

    The ImageViewer.DisplayMode property allows to set one of the predefined display modes:
    Also ImageViewer allows to define the custom image display mode using the following properties:

    Image preview modes

    ImageViewer can preview image in different modes.

    The ImageViewer.SizeMode property allows to set one of the predefined preview modes:

    Image appearance

    ImageViewer allows to specify the appearance (background brush, background color, border color, border width, border style) for focused image using the ImageViewer.FocusedImageAppearance property and for not focused images using the ImageViewer.ImageAppearance property.


    Rendering quality

    ImageViewer allows to specify image rendering quality.

    Here, for comparison, is the same image rendered with low and high quality:
    Low quality rendering High quality rendering


    Rendering quality can be changed with the ImageViewer.RenderingQuality property.


    Rendering settings

    Vector images/documents, for example PDF, DOCX or XLSX documents, must be rendered before preview in the ImageViewer.

    Rendering settings for vector images/documents can be set with the ImageViewer.ImageRenderingSettings property.



    Manipulation of images

    Hot keys

    ImageViewer has hot keys:
    Hot keys can be enabled/disabled with the ImageViewerBase.ShortcutCopy, ImageViewerBase.ShortcutCut, ImageViewerBase.ShortcutInsert, ImageViewerBase.ShortcutDelete properties.
    Behaviour of hot keys can be overriden with the ImageViewerBase.DoCopy, ImageViewerBase.DoCut, ImageViewerBase.DoInsert, ImageViewerBase.DoDelete methods.



    Context menu of image viewer

    ImageViewer has context menu which can accessed with the ContextMenuStrip property.



    Visual tools

    The visual tools extend functionality of ImageViewer class and allow to process images interactively.

    Active visual tool of the ImageViewer can be set using the ImageViewer.VisualTool property.