←Select platform

ImageViewerSizeMode Enumeration

Summary

Values that specify how the image is displayed.

Syntax

C#
VB
C++
public enum ImageViewerSizeMode : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum ImageViewerSizeMode  
   Inherits System.Enum 
   Implements System.IComparable, System.IConvertible, System.IFormattable 
public enum class ImageViewerSizeMode : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable

Members

ValueMemberDescription
0x00000000NormalWidth is the image width. Height is the image height.
0x00000001StretchWidth is the control's client area width. Height is the client area height. The aspect ratio of the image is not preserved.
0x00000002FitAlwaysThe largest possible width or height is set to the control's client area width or height. The remaining dimension is set proportionally to maintain the aspect ratio of the image.
0x00000003FitWidthWidth is the control's client area width. Height is set proportionally to maintain the aspect ratio of the image. If necessary, the control will implement a vertical scroll bar.
0x00000004FitSame as FitAlways if the image width or height is greater than the viewing area; otherwise, same as Normal. The aspect ratio of the image is maintained.
Remarks

The WebImageViewer.SizeMode property controls how the image is displayed.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Web Assembly
Click or drag to resize