Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Controls Assembly > Leadtools.Controls Namespace > ImageViewerInteractiveMode Class : HitTestState Property |
public virtual bool HitTestState {get; set;}
'Declaration
Public Overridable Property HitTestState As Boolean
HitTestState can be used to create an interactive mode that works over an area of interest in the viewer.
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:
Imports Leadtools Imports Leadtools.Controls Imports Leadtools.Codecs Imports Leadtools.Drawing Imports Leadtools.ImageProcessing Imports Leadtools.ImageProcessing.Color Dim interactiveModeCursor As Cursor = Nothing If Not _imageViewer.HitTestStateInteractiveMode Is Nothing Then interactiveModeCursor = _imageViewer.HitTestStateInteractiveMode.HitTestStateCursor End If If Not interactiveModeCursor Is Nothing Then _imageViewer.Cursor = interactiveModeCursor End If
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;