Using the Zoom View

Note:

This topic is for Document/Medical only.

LEADTOOLS provides a "zoomed view" that can be attached to a window handle. This Zoom View provides a means of "zooming in" on the image loaded into the window to which it is attached. As the source rectangle is moved over an image, the zoomed - in view also changes. This is similar to having multiple Magnifying Glasses on the same source image.

Use the "Zoom View" if you want to:

image\sqrblit.gif display one or more zoomed views for a single displayed image

image\sqrblit.gif display an annotation in addition to the zoomed view

image\sqrblit.gif display callout lines

Note that LEADTOOLS also provides a "magnifying glass" that can be attached to a window handle.

Use the "Magnifying Glass" if you want to:

image\sqrblit.gif control the painting options for the zoomed display.

image\sqrblit.gif set the contrast, gamma and intensity for the zoomed area.

For more information about the magnifying glass, refer to Using the Magnifying Glass.

To attach the zoomed view to a RasterView Control, call the CreateZoomView method. The following can be set using the ILEADRasterZoomView Object:

image\sqrblit.gif the rectangle describing the source area of the image to be zoomed (using the SrcHeight, SrcLeft, SrcTop, and SrcWidth properties)

image\sqrblit.gif the rectangle describing the location of the zoomed view (using the DstHeight, DstLeft, DstTop, and DstWidth properties)

image\sqrblit.gif the zoom factor (using the ZoomFactor property)

image\sqrblit.gif whether the zoomed view should be the size of the rectangle describing the location of the zoomed view, or whether to display the source rectangle magnified by the specified zoom factor (using the ForceDst property)

image\sqrblit.gif the border style for the zoomed view, along with border color pen width,and pen style (using the BorderColor, BorderStyle, PenWidth, and PenStyle properties)

image\sqrblit.gif the border style for the source rectangle, along with border color, pen width, and pen style (using the SrcBorderColor, SrcBorderStyle, SrcPenWidth, and SrcPenStyle properties)

image\sqrblit.gif whether callout lines will be used, along with color, pen width,and pen style (using the CalloutColor, CalloutPenStyle, CalloutPenWidth, and EnableCallouts properties)

image\sqrblit.gif the annotation object to be displayed (using the AnnContainer property)

image\sqrblit.gif whether the Zoom View is enabled (using the Enabled property)

image\sqrblit.gif the Index of the specified Zoom View (using the Index property)

The annotation objects can be displayed using the zoom view. To enable or disable displaying the annotation objects using the zoom view, use the AnnEnableZoomView property.

Use the CreateZoomView method to set and the GetZoomView method to obtain the properties for the specified zoom view. To change the current options for the specified Zoom View, change the values in the ZoomView after calling the GetZoomView method and then pass the changed values to the UpdateZoomView method.

To determine whether a window has a zoomed view attached to it, call the HasZoomView property.

A window can have more than one Zoom Views attached to it. To obtain the number of zoomed views attached to a window, call the ZoomViewsCount property. Use the Index property to keep track of the different Zoom Views attached to a window.

LEADTOOLS provides several different shapes for the zoomed view, including a rectangle, a rounded rectangle and a shape that looks like a piece of paper that has been torn from a larger sheet.

When the zoomed view is no longer needed, call the DestroyZoomView method to stop the Zoom View procedure and to detach it from the window handle.