O2S.Components.PDF4NET.Render Documentation
GetImageBoxForVisual Method



O2S.Components.PDF4NET.Rendering Namespace > PDFPageRenderer Class : GetImageBoxForVisual Method
The page visible box.
Page rotation.
The horizontal resolution used for converting the vector PDF page to raster.
The vertical resolution used for converting the vector PDF page to raster.
Gets the size in pixels of the page when converted to image at the specified resolution.
Syntax
'Declaration
 
Public Shared Function GetImageBoxForVisual( _
   ByVal pageBox As O2S.Components.PDF4NET.Graphics.PDFStandardRectangle, _
   ByVal rotation As Integer, _
   ByVal dpiX As Double, _
   ByVal dpiY As Double _
) As Integer()
'Usage
 
Dim pageBox As O2S.Components.PDF4NET.Graphics.PDFStandardRectangle
Dim rotation As Integer
Dim dpiX As Double
Dim dpiY As Double
Dim value() As Integer
 
value = PDFPageRenderer.GetImageBoxForVisual(pageBox, rotation, dpiX, dpiY)
public static int[] GetImageBoxForVisual( 
   O2S.Components.PDF4NET.Graphics.PDFStandardRectangle pageBox,
   int rotation,
   double dpiX,
   double dpiY
)
public:
static array<int>^ GetImageBoxForVisual( 
   O2S.Components.PDF4NET.Graphics.PDFStandardRectangle^ pageBox,
   int rotation,
   double dpiX,
   double dpiY
) 

Parameters

pageBox
The page visible box.
rotation
Page rotation.
dpiX
The horizontal resolution used for converting the vector PDF page to raster.
dpiY
The vertical resolution used for converting the vector PDF page to raster.

Return Value

Image size in pixels.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PDFPageRenderer Class
PDFPageRenderer Members