Image Display

LEADTOOLS currently supports over 120 different image formats and sub formats, each of which has its own unique set of load/save/display options, which may encompass varying types and/or degrees of compression, a range of image information bit-depths, progressive (multi-pass) image display, the ability to maintain multi-page or multi-channel images, animations, or non-image data, just to name a few. You can depend on LEAD Technologies to provide you the support you need to give your application control over the display of almost any image you encounter. Image display can be subdivided into two groups: raster image display and vector image display. These groups are described in more detail in the following sections.

Raster Image Display

LEADTOOLS provides numerous functions to let you take control of your application's image display. With LEADTOOLS, you control brightness and contrast settings, color reduction with dithering and palette control, zooming/scaling/fitting, panning, scrolling, painting with transparency and/or regions. Additionally, LEADTOOLS provides image-list and thumbnail browser controls, a special magnifying-glass feature, as well as an automated pan-window control.

LEADTOOLS renders an image of any color depth (1 to 64 bit**) to any display device, automatically handling any color reduction or expansion. Use nearest neighbor (fastest), bilinear (fast-good quality) or bicubic (best quality) resampling for zoomed display of images. Images can be automatically dithered to match the output display device on the fly, without changing the image in memory. Intensity, contrast and gamma correction changes can be applied to the display without affecting the original data. (AdditionalIy, the color reduction and display settings can be rendered into the image if desired, see Image Processing. Images can be scaled, zoomed, or scrolled when displayed. You can render images with a color specified as transparent.

You can position the displayed image, and zoom in or out by scaling and clipping the display. The rotated display* feature allows rendering images rotated in 90-degree increments without changing the image in memory. Large 1-bit images can remain compressed in memory while decompressing only the portion needed for display*. On a 256-color device, you can use a fixed palette option to eliminate palette shifting when displaying more than one image at a time. An automated pan window is provided to enable navigation on a large image using a small thumbnail view. LEADTOOLS also lets you display and manipulate a list of images as an array of thumbnails using the ImageList Control In addition, LEADTOOLS provides a Thumbnail Browser for browsing entire directories of image files.

When working with the ActiveX, COM, .NET or VCL controls, you can set properties which determine the way that images are displayed in the control, such as AutoScroll (automated scroll bars), AutoSize (snap control to image), PaintSizeMode (1:1 scale, fit image to control, zoomed at specified magnification factors etc.)

When painting images on any video device, you can do the following:

image\sqrblit.jpg Control the brightness, contrast, and gamma correction when painting (without affecting the bitmap).

image\sqrblit.jpg Define the client area of a LEAD control as a display surface where you can use Windows graphics device interface (GDI) functions for drawing or adding text. (You can also get a display surface derived from the actual image stored in memory in order to use Windows GDI to draw permanently into the image - see Image Processing.

image\sqrblit.jpg Display an automated rubberband (rectangle, elipse or freehand) to mark an area and create a region of interest.

image\sqrblit.jpg Paint an image only in a selected region of interest, or paint an image with transparency (any pixels which are the selected transparent color are not painted).

image\sqrblit.jpg Zoom in on a selected area. Use with automated rubberbanding for entirely automated behavior, or specify selected area in code.

image\sqrblit.jpg Selectively force repainting of the image in a LEAD control to avoid unecessary repaints, or use AutoRepainting to automate all display updates.

image\sqrblit.jpg Scale and position the image - specify source rectangle (portion of source image to paint) and destination rectangle (position on screen or drawing surface on which to paint it) for complete control over image zoom and position, or specify higher level properties like ZoomFactor or PaintMode (fit-to-window preserving aspect ratio, stretch to entire window, fit-to-width, 1:1 normal display, etc.). When used with the AutoScroll option, all Scroll Bar activity is automatic (scroll bars respond to programmatic changes of display settings, and display settings are updated by user's use of scroll bars).

image\sqrblit.jpg Limit the area to be painted by specifying the source and destination clipping areas (independent of source and destination rectangles which position image on screen).

image\sqrblit.jpg Apply any of over 2000 Special Effects, such as wipes, fades, dissolves, transitions commonly used in slide presentations.

image\sqrblit.jpg Apply ROP codes, which determine how to interact with the existing image on the screen.

image\sqrblit.jpg Use Double Buffer painting to eliminate flicker when painting.

image\sqrblit.jpg [DLL only] Use a buffer as the source to paint. (Can be used, for example, to paint an image as it is being loaded)

image\sqrblit.jpg [DLL only] Specify an option for fast painting (without device error checking).

If the display mode is 256 colors or less, you can use the palette associated with the image (if palletized), or use a fixed palette. You can specify LEAD's fixed palette or the Netscape fixed palette. Fixed palettes allow you to display multiple images on a screen in 256 color mode without "color shifting".

image\sqrblit.jpg Specify the dithering method for images that have more bits per pixel than the current video mode. The following are possible options:

image\sqrblit.jpg Normal dithering (using error diffusion).

image\sqrblit.jpg Ordered dithering, which is faster but less accurate than normal.

image\sqrblit.jpg [DLL only] No dithering, which relies on the display device for color reduction.

[Document/Medical only] For displaying 1-bit (black-and-white) images, you can do the following to enhance the quality of display:

image\sqrblit.jpg Specify a scale-to-gray option, which increases the clarity of the 1-bit images when they are scaled (zoomed in or zoomed out).

image\sqrblit.jpg Specify a favor-black option which prevents loss of details, such as fine lines, when an image is scaled down (zoomed out).

The LEADTOOLS Raster Image Display features are available in the following products:

LEADTOOLS Raster Imaging

LEADTOOLS Raster Imaging Pro

LEADTOOLS Raster Imaging Pro for .NET

LEADTOOLS Document Imaging

LEADTOOLS Document Imaging Suite

LEADTOOLS Medical Imaging

LEADTOOLS Medical Imaging Suite

Support for the Raster Image Display features is provided for the following programming interfaces:

ActiveX

API

Class Library

COM

.NET

VCL

Please note that LEAD also offers the LEADTOOLS JPEG 2000 COM Object for IE Module, which lets you view JPEG 2000 images in ActiveX enabled web browsers, such as Internet Explorer. For more information, refer to LEADTOOLS JPEG 2000 COM Object for IE.

Vector Image Display

The LEADTOOLS Vector Image Display features provide support for 2D and 3D Vector formats including DXF (2D and 3D), CGM, DGN, DRW, DWF, DWG, EMF, WMF, PLT, Gerber, PCL, PCT, SVG, VWPG, CMX and SHP. Support for primitive objects include Arc, Bitmap, Brush, Camera, Circle, Clone, Ellipse, Elliptical Arc, Font, Group, Layer, Line, Pen, Pie, Chord, Poly Draw, Polygon, Poly Line, Poly Bezier, Raster, Rectangle, Text, Vertex and Clipping objects. Vector images can also be rotated, scaled and translated as a whole (not individual objects) for display purposes. In addition there are low and high-level functions to control the view of vector drawings include zooming (both uniform or around any axis), panning, rotation (around any axis) and anti-aliasing. Vector drawings can be scaled to any resolution desired without distorting the original image, ensuring that fine details of the drawing will not be lost during printing.

The LEADTOOLS Vector Image Display features are available in the following products:

LEADTOOLS Vector Imaging Pro

Support for the Vector Image Display features is provided for the following programming interfaces:

ActiveX

API

Class Library