DestroyZoomView method (ILEADRasterView)

Visual Basic example

Visual C++ example

 

Syntax

short DestroyZoomView (long lIndex);

Overview

Refer to Using the Zoom View

Remarks

(Document/Medical only.) Destroys the specified Zoom View, and releases all resources associated with it.

When a zoomed view is no longer needed, call the DestroyZoomView method to stop the specified Zoom View procedure and to detach it from the RasterView Control.

You must call this method for each Zoom View you have created before destroying the window with which the Zoom Views are associated.

If you need to destroy all the zoomed views that are attached to a specified window, destroy them from the last Zoom View to the first Zoom View. For example, if you have 5 Zoom Views associated with the specified window you need to do the following:

In VB

Dim nCount As Integer
Dim i As Integer
If (LEADRasterView1.HasZoomView) Then
   nCount = LEADRasterView1.ZoomViewsCount
   For i = nCount - 1 To 0 Step -1
      LEADRasterView1.DestroyZoomView i
   Next i
End If

In MFC

int nCount;

if(m_RasterView.GetHasZoomView())
{
   nCount = m_RasterView.GetZoomViewsCount();
   for (int i = 0; i<nCount ;++i)
      m_RasterView.DestroyZoomView(nCount-i-1);
}

See Also

Elements:

DstLeft property, DstTop property, DstWidth property, DstHeight property, SrcLeft property, SrcTop property, SrcWidth property, SrcHeight property, BorderStyle property, BorderColor property, PenStyle property, Index property, SrcBorderStyle property, SrcBorderColor property, SrcPenStyle property, EnableCallouts property, CalloutColor property, CalloutPenStyle property, ZoomFactor property, Enabled property, ForceDst property, AnnContainer property, HasZoomView property, ZoomViewsCount property, SrcPenWidth property, CalloutPenWidth property, PenWidth property, CreateZoomView method, GetZoomView method

Topics:

Raster Images: Displaying Images

Using Color Values in LEADTOOLS