O2S.Components.PDF4NET.Render Documentation
CreateRenderingSurface<T> Method



O2S.Components.PDF4NET.Rendering Namespace > PDFPageRenderer Class : CreateRenderingSurface<T> Method
A rendering surface class.
The horizontal resolution used for converting the vector PDF page to raster.
The vertical resolution used for converting the vector PDF page to raster.
Creates a rendering surface fit for rendering the current page.
Syntax
'Declaration
 
Public Function CreateRenderingSurface(Of T As {New, PDFRenderingSurface})( _
   ByVal dpiX As Double, _
   ByVal dpiY As Double _
) As T
'Usage
 
Dim instance As PDFPageRenderer
Dim dpiX As Double
Dim dpiY As Double
Dim value As T
 
value = instance.CreateRenderingSurface(Of T)(dpiX, dpiY)
public T CreateRenderingSurface<T>( 
   double dpiX,
   double dpiY
)
where T: new(), PDFRenderingSurface
public:
T^ CreateRenderingSurfacegeneric<typename T>
( 
   double dpiX,
   double dpiY
) 
where T: gcnew(), PDFRenderingSurface

Parameters

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.

Type Parameters

T
A rendering surface class.

Return Value

The rendering surface
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