←Select platform

HitTestState Property

Summary

Indicates this mode hit-test state.

Syntax
C#
C++/CLI
public virtual bool HitTestState { get; set; } 
public:  
   virtual property bool HitTestState 
   { 
      bool get() 
      void set(bool value) 
   } 

Property Value

true if this mode hit-test state is on, otherwise; false.

Remarks

HitTestState can be used to create an interactive mode that works over an area of interest in the viewer.

Example

Run the example. The cursor changes to a crosshair when it is over the red rectangles.

Start with the ImageViewer example, remove all the code inside the example function (search for the "// TODO: add example code here" comment) and insert the following code:

C#
using Leadtools; 
using Leadtools.Controls; 
using Leadtools.Codecs; 
using Leadtools.Drawing; 
 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
 
Cursor interactiveModeCursor = null; 
if (_imageViewer.HitTestStateInteractiveMode != null) 
{ 
   interactiveModeCursor = _imageViewer.HitTestStateInteractiveMode.HitTestStateCursor; 
} 
 
if (interactiveModeCursor != null) 
   _imageViewer.Cursor = interactiveModeCursor; 
Requirements

Target Platforms

Help Version 22.0.2023.1.24
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.