StartMagGlass method (ILEADRasterView)

Visual Basic Example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

short StartMagGlass (float fWidth, float fHeight, short nZoom, OLE_COLOR clrPen, OLE_COLOR clrBack, boolean bEllipse, float fBorderSize, boolean b3D, CrosshairConstants Crosshair, boolean bIgnoreRgn, boolean bCenter);

Overview

Refer to Using the Magnifying Glass

Remarks

Starts the Magnify Glass procedure.

The appearance of the magnifying glass depends on the values of bEllipse, clrPen, b3D and fBorderSize. This can be seen in the table below:

 

bEllipse

b3D

fBorderSize

ClrPen

Result

TRUE

Ignored

Valid

Valid

An elliptical magnifying glass of border size fBorderSize and border color clrPen.

FALSE

FALSE

Valid

Valid

A rectangular magnifying glass with a flat border of width fBorderSize and border color clrPen.

FALSE

TRUE

Ignored

Ignored

A rectangular magnifying glass with a 3D border having a set width and color.

 

The following properties can be used to control the painting options for the magnifying glass:

PanWinPaintPalette property

PanWinBitonalScaling property

PanWinPaintDither property

PanWinPaintScaling property

The cursor for the magnifying glass can have one of the following default shapes:

When bEllipse = TRUE, the default cursor will be:

image\MagGls.gif

When bEllipse = FALSE, the default cursor will be:

image\MagGls2.gif

A custom shape can be used by setting the following properties:

PanWinPointer = 99 ' custom
PanWinCursor = Your custom cursor image

Note: To make use of other shapes of the Magnifying Glass use the UpdateMagGlassShape method.

See Also

Elements:

StopMagGlass method , UpdateMagGlassShape method

Topics:

Raster Images: Displaying Images

 

Using Color Values in LEADTOOLS