Gets or sets a value that indicates whether to restrict the work area to the image rectangle.
public bool WorkOnImageRectangle {get; set;}
Public Property WorkOnImageRectangle As Boolean
public bool WorkOnImageRectangle {get; set;}
@property (nonatomic, assign) BOOL workOnImageRectangle
public boolean getWorkOnImageRectangle()
public void setWorkOnImageRectangle(boolean workOnImageRect)
get_WorkOnImageRectangle();
set_WorkOnImageRectangle(value);
Object.defineProperty('WorkOnImageRectangle');
true to restrict the work area to the image rectangle; otherwise, it is false. The default value is true.
If the current image size and scale in the viewer exposes part of the background, then clicking or touching on the background area not covered by the image may or may not start the work of this mode depending on this property.
using Leadtools;
using Leadtools.Codecs;
using Leadtools.Controls;
public void WorkOnImageRectangleExample()
{
// Set the interactive mode to magnify glass
ImageViewerMagnifyGlassInteractiveMode magGlassMode = new ImageViewerMagnifyGlassInteractiveMode();
_viewer.DefaultInteractiveMode = magGlassMode;
// Flip the value of WorkOnImageRectangle of the default interactive mode
ImageViewerInteractiveMode interactiveMode = _viewer.DefaultInteractiveMode;
if (interactiveMode != null)
{
if (interactiveMode.WorkOnImageRectangle)
{
interactiveMode.WorkOnImageRectangle = false;
_infoLabel.Text = "WorkOnImageRectangle will be set to false, now when you click on the background not covered by the image, it will work";
}
else
{
interactiveMode.WorkOnImageRectangle = true;
_infoLabel.Text = "WorkOnImageRectangle will be set to true, now when you click on the background not covered by the image, it will not work";
}
}
}
Products |
Support |
Feedback: WorkOnImageRectangle Property - OLeadtools.Controls |
Introduction |
Help Version 19.0.2017.3.23
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.