Gets the physical view rectangle.
[BrowsableAttribute(false)]
public virtual Rectangle PhysicalViewRectangle {get;}
<BrowsableAttribute(False)>
Public Overridable ReadOnly Property PhysicalViewRectangle As Rectangle
[BrowsableAttribute(false)]
public:
virtual property Rectangle PhysicalViewRectangle {
Rectangle get();
}
The physical view rectangle.
The physical view rectangle is the current viewing rectangle in viewer coordinates. The value of this property is current pixel location on the RasterImageViewer control of the image top, left, right and bottom pixel values.
For example, you are using RasterPaintSizeMode.Normal and the viewer has a vertical scroll bar, when the scroll bar value is at the top of the image, the Top value of PhysicalViewRectangle will be 0. If you scroll the image up (by dragging the vertical scroll bar down), the value of Top will become a negative value since the top of the image is painted outside the control coordinates.
This example displays the information about the image and the RasterImageViewer settings.
Imports Leadtools.WinForms
Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.ImageProcessing.Color
Imports Leadtools.Drawing
Private Sub viewer_BorderPadding(ByVal sender As Object, ByVal e As EventArgs)
Dim viewer As RasterImageViewer = CType(IIf(TypeOf sender Is RasterImageViewer, sender, Nothing), RasterImageViewer)
MessageBox.Show(viewer.SizeMode.ToString())
End Sub
Public Sub RasterImageViewer_BorderPadding(ByVal viewer As RasterImageViewer)
Dim b As ViewerBorderPadding = viewer.BorderPadding
Dim s As String = String.Format("Border Padding: All {0} Left {1} Top {2} Right {3} Bottom {4}", b.All, b.Left, b.Top, b.Right, b.Bottom)
Console.WriteLine(s)
Console.WriteLine("Image Dpi: (" & viewer.ImageDpiX & ", " & viewer.ImageDpiY & ")")
Console.WriteLine("Image Size: " & viewer.ImageSize.Width & ", " & viewer.ImageSize.Height)
s = String.Format("LogicalViewRectangle {0}", viewer.LogicalViewRectangle)
Console.WriteLine(s)
s = String.Format("PhysicalViewRectangle {0}", viewer.PhysicalViewRectangle)
Console.WriteLine(s)
End Sub
using Leadtools.WinForms;
using Leadtools;
using Leadtools.Codecs;
using Leadtools.ImageProcessing.Color;
using Leadtools.Drawing;
private void viewer_BorderPadding(object sender, EventArgs e)
{
RasterImageViewer viewer = sender as RasterImageViewer;
MessageBox.Show(viewer.SizeMode.ToString());
}
public void RasterImageViewer_BorderPadding(RasterImageViewer viewer)
{
ViewerBorderPadding b = viewer.BorderPadding;
string s = string.Format("Border Padding: All {0} Left {1} Top {2} Right {3} Bottom {4}", b.All, b.Left, b.Top, b.Right, b.Bottom);
Console.WriteLine(s);
Console.WriteLine("Image Dpi: (" + viewer.ImageDpiX + ", " + viewer.ImageDpiY + ")");
Console.WriteLine("Image Size: " + viewer.ImageSize.Width + ", " + viewer.ImageSize.Height);
s = string.Format("LogicalViewRectangle {0}", viewer.LogicalViewRectangle);
Console.WriteLine(s);
s = string.Format("PhysicalViewRectangle {0}", viewer.PhysicalViewRectangle);
Console.WriteLine(s);
}
Products |
Support |
Feedback: PhysicalViewRectangle Property - Leadtools.WinForms |
Introduction |
Help Version 19.0.2017.3.22
|
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.