Determines how the control displays the image and the automatic adjustments of the display rectangles.
lt.Controls.ControlSizeMode = {
none: 0,
actualSize: 1,
fit: 2,
fitAlways: 3,
fitWidth: 4,
fitHeight: 5,
stretch: 6
}
lt.Controls.ControlSizeMode = {
none: 0,
actualSize: 1,
fit: 2,
fitAlways: 3,
fitWidth: 4,
fitHeight: 5,
stretch: 6
}
0 | None |
(0) No special sizing |
1 | ActualSize |
(1) Use the image actual size |
2 | Fit |
(2) Fit the image into the viewing area while maintaining the aspect ratio. If the image size is smaller than the viewing area, no resizing is done. |
3 | FitAlways |
(3) Always fit the image into the viewing area while maintaining the aspect ratio even if the image size is smaller than the viewing area (in which case, the image will be scaled up). |
4 | FitWidth |
(4) Fit the image width to be the size of the width of the viewing area while maintaining the aspect ratio. |
5 | FitHeight |
(5) Fit the image height to be the size of the height of the viewing area while maintaining the aspect ratio. |
6 | Stretch |
(6) Fit the image to fill the viewing area. Aspect ratio might not be maintained. |
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document