Current view size in pixels.
public LeadSize ViewSize { get; }
Public ReadOnly Property ViewSize() As LeadSize
Get
The view size in pixels (excluding the view padding set in ViewPadding)
The view consists of all current the items in the viewer plus any padding (set in ViewPadding). This is the area that the viewer use to determine whether horizontal and vertical scrollbars are needed and to calculate their size and position.
The view area is calculated during UpdateTransform. The current ViewLayout determines where each item is placed and calculates their sizes. The total of these sizes is calculated and multiplied by any scale factor (XScaleFactor and YScaleFactor) set by the Zoom method. The final size is the view area.
During the calculations, the viewer will calculate the transformation matrix used when rendering the view. This matrix contains the current padding, scroll offset and scale factors and stored in ViewTransform. For example, to render the view border, the viewer simply draws the value of GetViewBounds transformed with ViewTransform.
For more information, refer to Image Viewer Appearance, Image Viewer Transformation, and Image Viewer Bounds and Transform.
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