Gets the viewer border padding.
public virtual ViewerBorderPadding BorderPadding { get; }
[BrowsableAttribute(false)]
public:
virtual property ViewerBorderPadding^ BorderPadding {
ViewerBorderPadding^ get();
}
public:
virtual property ViewerBorderPadding^ BorderPadding
{
ViewerBorderPadding^ get()
}
The viewer border padding.
The BorderPadding is used to put an empty border around the image display.
This example displays the information about the image and the RasterImageViewer settings.
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);
}
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