Leadtools.Controls.ImageViewerNewImageResetOptions = function() { };
Leadtools.Controls.ImageViewerNewImageResetOptions.prototype = {
	none = 0x00000000,
	scrollOffset = 0x00000001,
	scaleFactor = 0x00000002,
	sizeMode = 0x00000004,
	reverse = 0x00000008,
	flip = 0x00000010,
	rotateAngle = 0x00000020,
	invert = 0x00000040,
	aspectRatioCorrection = 0x00000080,
	all = 0x000000FF,
	
 };
            | Value | Member | Description | 
|---|---|---|
| 0x00000000 | none | 
 (0)None of the properties will reset back to their default values.  | 
| 0x00000001 | scrollOffset | 
 (0x0001)The horizontal and vertical scroll offsets (ImageViewer.ScrollOffset) location will reset back to the top-left position (0,0)  | 
| 0x00000002 | scaleFactor | 
 (0x0002)The ImageViewer.ScaleFactor value will reset back to 1.0  | 
| 0x00000004 | sizeMode | 
 (0x0004)The ImageViewer.SizeMode value will reset back to ImageViewerSizeMode.None  | 
| 0x00000008 | reverse | 
 (0x0008)The ImageViewer.Reverse value will reset back to false  | 
| 0x00000010 | flip | 
 (0x0010)The ImageViewer.Flip value will reset back to false  | 
| 0x00000020 | rotateAngle | 
 (0x0020)The ImageViewer.RotateAngle value will reset back to 0  | 
| 0x00000040 | invert | 
 (0x0040)The ImageViewer.Invert value will reset back to false  | 
| 0x00000080 | aspectRatioCorrection | 
 (0x0080)The ImageViewer.AspectRatioCorrection value will reset back to true  | 
| 0x000000FF | all | 
 (0x00ff)All the properties will reset back to their default values  | 
Use the ImageViewer.NewImageResetOptions property to control which of the display properties of the control resets back to its default value when the ImageViewer.ImageUrl property is set to a new image or when the user sets a new value into ImageViewer.ImageSize manually.
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 ImageViewer.NewImageResetOptions.