←Select platform

Leadtools.Controls Introduction (.NET)

Summary

The Leadtools.Controls assembly includes two classes that can be added to the Visual Studio toolbox as Windows Forms controls: the RasterPictureBox control and the ImageViewer control. Use these controls to view and manipulate images.

RasterPictureBox Class

The RasterPictureBox class is a PictureBox control used to display images. Use the control to display graphics from a bitmap, metafile, icon, JPEG, GIF or PNG (or any other image file format supported by LEADTOOLS) file. The following figure shows the Animation Demo using a RasterPictureBox to display an animated GIF file:

Note that the RasterPictureBox control can automatically animate multi-page formats.

RasterPictureBox Features

  • Single-item display

  • Automatic and custom scroll modes

  • High-level animation of multi-page formats, including GIF and TIFF

ImageViewer Class

The LEADTOOLS ImageViewer class is a control used to display one or more raster or SVG images with (optional) interactive UI operations. Use the class to create single-item applications like MS-Paint or multiple-item applications like Adobe Acrobat. The following figure illustrates three of the layouts in which the ImageViewer can be used:

  1. The LEADTOOLS Main Demo using an ImageViewer instance in the single layout mode to view the main image

  2. The LEADTOOLS Document Viewer using an ImageViewer instance in the vertical layout mode to view image thumbnails

  3. The LEADTOOLS Document Viewer using another ImageViewer instance in the double layout mode to view the main content

ImageViewer Features

The ImageViewer class provides the following features:

  • Single- or multiple-item display. Each item has its own image data, size, and optional additional transformations

  • Built-in support for displaying and loading raster and SVG images and documents directly from disk files or URLs

  • Extensible layout system with built-in support for single, vertical, and horizontal layouts

  • Rich, built-in, fully customizable and extensible user-interface. Support for many interactions, including panning, zooming, magnifying, rubber banding, etc. Support for both mouse and touch input

  • Fully customizable appearance and position

  • Automatic and custom scroll modes

  • Owner draw rendering

  • Viewing options include infinite zooming in different size modes (fit, fit page, etc.), rotation at any angle, flip, reverse, color inversion, and low-level transformation

  • High-level item operations for hit-testing and navigation

  • Drag and drop between the ImageViewer and external sources such as the file system or other ImageViewer instances

  • Floater and region support

  • Virtualization mode for handling large numbers of images

Supported Environments

See Also

Reference

Using the ImageViewer

Version History

Leadtools.Controls Assembly Changes

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls.WinForms Assembly