Available in the LEADTOOLS Imaging toolkit. |
MagGlassFlags property (Main Control)
Visual Basic
example
Visual C++ 4.0 example
Syntax short MagGlassFlags
Overview: Refer to Using the Magnifying Glass
Remarks
Flags that controls two behaviors of the Magnifying Glass:
1. Flags that indicate which colors in the zoomed image will be displayed and which colors will be masked. Possible values are:
Value |
Meaning |
MAGGLASS_MASK_NORMAL |
[0x0000] Works in two ways: |
|
1. When this flag is set without setting MAGGLASS_MASK_FROM_REGION flag, then only those colors present in the MagGlassMask property will be masked in the Magnifying Glass display area. All other colors will be displayed. |
|
2. When this flag is set in combination with setting MAGGLASS_MASK_FROM_REGION flag, then the colors present in the MagGlassMask property will be ignored and only the bitmap region colors will be masked in the Magnifying Glass display area. All other colors will be displayed. |
MAGGLASS_MASK_INVERT |
[0x0001] Works in two ways: |
|
1. When this flag is set without setting MAGGLASS_MASK_FROM_REGION flag, then only those colors present in the MagGlassMask property will be displayed in the Magnifying Glass display area. All other colors will be masked. |
|
2. When this flag is set in combination with setting MAGGLASS_MASK_FROM_REGION flag, then the colors present in the MagGlassMask property will be ignored and only the bitmap region colors will be displayed in the Magnifying Glass display area. All other colors will be masked. |
MAGGLASS_MASK_FROM_REGION |
[0x0004] Works only if the Bitmap has a region, LEADTOOLS will get all colors from this region and either masks or displays these colors according to MAGGLASS_MASK_NORMAL and MAGGLASS_MASK_INVERT flags. |
Note: This feature that is provided by this flag works ideally with rectangle regions since LEADTOOLS gets the bounding rectangle of the Bitmap region then gets all the colors of this rectangle.
2. Flags that enable/disable the manual update of the Magnifying Glass. The only possible value:
Value |
Meaning |
MAGGLASS_MANUAL_UPDATE |
[0x0002] When this flag is set, LEADTOOLS will not handle the mouse events in order to manipulate the Magnifying Glass, it becomes the user’s responsibility to control the Magnifying Glass by using the ShowMagGlass and SetMagGlassPos methods. |
See Also
Elements: MagGlassMask property, MagGlassMaskCount property, MagGlassCursor event, StartMagGlass method, StopMagGlass method, ShowMagGlass method, SetMagGlassPos method
Topics: Raster Images: Displaying Images