Syncfusion.PdfViewer.WPF


Syncfusion.Windows.PdfViewer Namespace > PdfViewerControl Class > ExportAsImage Method : ExportAsImage(Int32,Int32,SizeF,Boolean) Method
The starting page index
The ending page index
The custom size of the converted System.Windows.Media.Imaging.BitmapSource
Whether need to maintain the pdf page size

ExportAsImage(Int32,Int32,SizeF,Boolean) Method

Exports the specified pages as System.Windows.Media.Imaging.BitmapSource
Syntax
'Declaration
 
Public Overloads Function ExportAsImage( _
   ByVal startIndex As Integer, _
   ByVal endIndex As Integer, _
   ByVal customSize As SizeF, _
   ByVal keepAspectRatio As Boolean _
) As BitmapSource()
'Usage
 
Dim instance As PdfViewerControl
Dim startIndex As Integer
Dim endIndex As Integer
Dim customSize As SizeF
Dim keepAspectRatio As Boolean
Dim value() As BitmapSource
 
value = instance.ExportAsImage(startIndex, endIndex, customSize, keepAspectRatio)

Parameters

startIndex
The starting page index
endIndex
The ending page index
customSize
The custom size of the converted System.Windows.Media.Imaging.BitmapSource
keepAspectRatio
Whether need to maintain the pdf page size

Return Value

Returns the specified pages as System.Windows.Media.Imaging.BitmapSource with custom size
AssemblyVersion

Syncfusion.PdfViewer.WPF: 18.2460.0.44

See Also