


public enum ImageViewerNewImageResetOptions : System.Enum
Public Enum ImageViewerNewImageResetOptions Inherits System.Enum
public enum ImageViewerNewImageResetOptions : System.Enum
enum LTImageViewerNewImageResetOptions
public enum ImageViewerNewImageResetOptions
Leadtools.Controls.ImageViewerNewImageResetOptions = function() { };
Leadtools.Controls.ImageViewerNewImageResetOptions.prototype = {
None = 0,
ScrollOffset = 0x0001,
ScaleFactor = 0x0002,
SizeMode = 0x0004,
Reverse = 0x0008,
Flip = 0x0010,
RotateAngle = 0x0020,
Invert = 0x0040,
AspectRatioCorrection = 0x0080,
All = 0x00ff,
COLOR_FILTER = 0x0100,
};
| Value | Member | Description |
|---|---|---|
| 0 | None |
None of the properties will reset back to their default values. ![]() ![]() ![]() |
| 0x0001 | ScrollOffset |
The horizontal and vertical scroll offsets (ImageViewer.ScrollOffset) location will reset back to the top-left position (0,0) ![]() ![]() ![]() |
| 0x0002 | ScaleFactor |
The ImageViewer.ScaleFactor value will reset back to 1.0 ![]() ![]() ![]() |
| 0x0004 | SizeMode |
The ImageViewer.SizeMode value will reset back to ImageViewerSizeMode.None ![]() ![]() ![]() |
| 0x0008 | Reverse |
The ImageViewer.Reverse value will reset back to false ![]() ![]() ![]() |
| 0x0010 | Flip |
The ImageViewer.Flip value will reset back to false ![]() ![]() ![]() |
| 0x0020 | RotateAngle |
The ImageViewer.RotateAngle value will reset back to 0 ![]() ![]() ![]() |
| 0x0040 | Invert | The ImageViewer.Invert value will reset to false.
Note: This flag not supported in Java, use ImageViewerNewImageResetOptions.COLOR_FILTER instead. ![]() |
| 0x0080 | AspectRatioCorrection |
The ImageViewer.AspectRatioCorrection value will reset back to true ![]() ![]() ![]() |
| 0x00ff | All |
All the properties will reset back to their default values ![]() ![]() ![]() |
| 0x0100 | COLOR_FILTER | Java Only The ImageViewer ColorFilter value will reset back to null
Note: This flag not supported in Objective C, use ImageViewerNewImageResetOptions.Invert instead. |
You can use the ImageViewer.NewImageResetOptions property to control which of the display properties of the control resets back to its default value when the RasterImageViewer.Image property is set to a new image or when the user sets a new value into ImageViewer.ImageSize manually.
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 an example, refer to RasterImageViewer.