UpdateMagGlassFromHandle method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int UpdateMagGlassFromHandle(TBitmapHandle Bitmap, bool bUpdateBitmap);

Delphi Syntax

Function UpdateMagGlassFromHandle (Bitmap: TBitmapHandle; bUpdateBitmap: Boolean ): L_INT;

Overview

Refer to Using the Magnifying Glass

Remarks

Updates the bitmap that Magnify Glass uses to paint the zoomed area.

The idea is to provide a new bitmap that the Magnifying Glass can use to display the zoomed area from. The dimensions of this passed bitmap should be equal to the dimensions of the Magnifying Glass bitmap.

A TRUE value of bUpdateBitmap flag means that update the Main Control’s bitmap with the parts of the passed bitmap as the Magnifying Glass moves over the Main Control’s bitmap.

Note:

This method can be used only if the MAGGLASS_MANUAL_UPDATE flag was set in the MagGlassFlags property.

See Also

Elements:

MagGlassFlags property, OnMagGlassCursor event, StartMagGlass method, StopMagGlass method, ShowMagGlass method, SetMagGlassPos method.

Topics:

Raster Images: Displaying Images