Options to control which display properties gets reset when a new image is set into the control.
[FlagsAttribute()]
public enum ResetImageViewOptions : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
<FlagsAttribute()>
Public Enum ResetImageViewOptions
Inherits System.Enum
Implements System.IComparable, System.IConvertible, System.IFormattable
[FlagsAttribute()]
public enum class ResetImageViewOptions : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Members
Value | Member | Description |
---|---|---|
0x00000000 | None |
None of the following properties will reset back to their default values, instead they will keep their current values when a new image is set in he control |
0x00000001 | ScrollPosition |
The horizontal and vertical bars (if applicable) location will reset back to the top-left position |
0x00000002 | ScaleFactor |
The ImageBox.ScaleFactor or ImageViewer.ScaleFactor properties will reset back to 1.0. |
0x00000004 | AspectRatioCorrection |
The ImageBox.AspectRatioCorrection or ImageViewer.AspectRatioCorrection properties will reset back to 1.0. |
0x00000008 | SizeMode |
The ImageBox.SizeMode or ImageViewer.SizeMode properties will reset back to SizeMode.Normal. |
0x00000010 | Reverse |
The ImageBox.Reverse or ImageViewer.Reverse properties will reset back to false. |
0x00000020 | Flip |
The ImageBox.Flip or ImageViewer.Flip properties will reset back to false. |
0x00000040 | RotateAngle |
The ImageBox.RotateAngle or ImageViewer.RotateAngle properties will reset back to 0. |
0x0000007F | All |
All the above properties will reset back to their default values. |
You can use the ImageBox.ResetImageViewOptions and ImageViewer.ResetImageViewOptions properties to control which of the display properties of the controls resets back to its default value when a new image is set into the ImageBox.Source, RasterImageBox.Image, ImageViewer.Source or RasterImageViewer.Image properties.
You can 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.
For XAML example, refer to ResetImageViewOptions.
For C#/VB examples, refer to ResetImageViewOptions.
Products |
Support |
Feedback: ResetImageViewOptions Enumeration - Leadtools.Windows.Controls |
Introduction |
Help Version 19.0.2017.3.22
|
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.