Current bounds of the view in physical (in control pixel) coordinates
public virtual LeadRectD GetViewBounds(
bool withPadding,
bool clipped
)
Public Overridable Function GetViewBounds(
ByVal withPadding As Boolean,
ByVal clipped As Boolean
) As LeadRectD
public:
virtual LeadRectD^ GetViewBounds(
bool withPadding,
bool clipped
)
withPadding
true to include the value of ViewPadding when calculating the value, otherwise; false.
clipped
true to intersect the returned value with the current viewer control rectangle, otherwise; false.
The view bounds in pixels or LeadRectD.Empty if the viewer does not have any items or if the view does not intersect with the control rectangle.
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.
For an example, refer to RedirectRender.
Products |
Support |
Feedback: GetViewBounds Method (ImageViewer) - Leadtools.Controls |
Introduction |
Help Version 19.0.2017.6.20
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.