Support for this control is provided by the LTIVW DLL. Each container created has both a window handle and a handle to the container itself. A container has a number of properties that govern the appearance of the container and the cells, including the number of rows and columns in which cells are viewed. The maximum number of rows and columns allowed in a container is 8 X 8. While a container can have a maximum of 8 rows and 8 columns, the number of cells in a container is limited only by the amount of available memory.
A container, or Image Viewer, can contain a number of child windows called cells. These cells can contain images, tags or rulers. A cell can have one or more images attached to it. Cells can also contain rulers. In addition to images and rulers, cells can also contain tags.
Actions are processes that can be applied to the images attached to cells within the container/image viewer. LEADTOOLS supports several standard or "built-in" actions and custom or "user-defined" actions. The built-in actions LEADTOOLS supports are listed below:
Window Leveling: Maps grayscale intensities using a user-defined color map (LUT).
Alpha: A window-leveling factor used when the window-leveling lookup table is non-linear.
Scale: Increases or decreases the size of the image in the cell.
Offset: Changes the offset of the image within the cell.
Magnifying Glass: Magnifies the image in the cell.
Stack: Scrolls through the images within the cell.
Annotations are based on vectored drawing functions and are associated with bitmaps as an overlay of the displayed image. Annotations are maintained separately from bitmaps. LEADTOOLS supports the following annotations:
Annotation ruler: Adds a ruler to the cell.
Annotation rectangle: Adds a rectangle to the cell.
Annotation ellipse: Adds an ellipse to the cell.
Annotation angle: Adds an angle to the cell.
Annotation highlight: Adds a highlight to the cell.
Annotation arrow: Adds an arrow to the cell.
Annotation text: Adds text to the cell.
A bitmap region is an area of interest within a bitmap. A region can be complex; including, for example, multiple noncontiguous shapes. LEADTOOLS supports the following types of regions:
Rectangle region: Adds a rectangular region to the cell.
Square region: Adds a square region to the cell.
Elliptical region: Adds an elliptical region to the cell.
Circular region: Adds a circular region to the cell.
Freehand region: Adds a freehand region to the cell.
Polygon region: Adds a polygonal region to the cell.
Magic Wand region: Sets a region based on the color of the selected point, growing outward in all directions from that point. Dragging increases the amount of deviation from the selected color that is allowed.
Color Range region: Adds a color range region to the cell.
Nudge tool region: Expands the region's border using the mouse, or serves as a region painter [Version 16 and above]
Shrink tool region: Shrinks the region's border using the mouse. [Version 16 and above]
Custom actions, including any mouse movement and keystroke associations, are completely controlled by the user.
The following topics provide a systematic approach to understanding how to program with the LEADTOOLS Medical Image Viewer Control C++ Class Library.
For more information, refer to: