Specifies options to control which display properties get reset when an image is set into the control.
lt.Controls.ImageViewerAutoResetOptions = {
None: 0x00000000,
Scroll: 0x00000001,
Zoom: 0x00000002,
Transformation: 0x00000004,
Effects: 0x00000008,
All: 0x0000000F
}
lt.Controls.ImageViewerAutoResetOptions = {
None: 0x00000000,
Scroll: 0x00000001,
Zoom: 0x00000002,
Transformation: 0x00000004,
Effects: 0x00000008,
All: 0x0000000F
}
Members
0x00000000 | None |
(0) None of the properties will reset back to their default values. |
0x00000001 | Scroll |
(1) The horizontal and vertical scroll offsets (ImageViewer.ScrollOffset) location will reset back to the top-left position (0,0) |
0x00000002 | Zoom |
(2) Reset ImageViewer.ScaleFactor back to 1.0 and ImageViewer.SizeMode to ControlSizeMode. This will call Zoom to set these values. |
0x00000004 | Transformation |
(4) Reset ImageViewer.Flip, ImageViewer.Reverse and ImageViewer.RotateAngle back to false, false and 0 respectively. |
0x00000008 | Effects |
(8) Resets ImageViewer.Invert back to false |
0x0000000F | All |
(16) All the properties will reset back to their default values |
Use the ImageViewer.AutoResetOptions property to control which of the display properties of the control resets back to its default value when a new image is set in the viewer.
Use a logical OR operation to combine any of the above options together. By setting these options, you can achieve effects such as if the control has a scale factor value of 1.5 (150 percent) and a new image is set, the scale factor does not reset and stays at 150 percent instead of going back to 100 percent.
Used when the viewer is not used with multiple items. For more information, refer to Image Viewer in Single Item Mode.
For an example, refer to ImageViewer.AutoResetOptions.
Products |
Support |
Feedback: ImageViewerAutoResetOptions Enumeration - Leadtools.Controls |
Introduction |
Help Version 19.0.2017.3.21
|
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.