XFINIUM.PDF Documentation
PdfPngImage Constructor(String,Boolean)



Xfinium.Pdf.Graphics Namespace > PdfPngImage Class > PdfPngImage Constructor : PdfPngImage Constructor(String,Boolean)
Path to PNG image.
Performs fast PNG to PDF conversion for RGB only PNG images
Initializes a new PdfPngImage object.
Syntax
'Declaration
 
Public Function New( _
   ByVal fileName As String, _
   ByVal fastRgbConversion As Boolean _
)
'Usage
 
Dim fileName As String
Dim fastRgbConversion As Boolean
 
Dim instance As New PdfPngImage(fileName, fastRgbConversion)
public PdfPngImage( 
   string fileName,
   bool fastRgbConversion
)
public:
PdfPngImage( 
   String^ fileName,
   bool fastRgbConversion
)

Parameters

fileName
Path to PNG image.
fastRgbConversion
Performs fast PNG to PDF conversion for RGB only PNG images
Remarks
When fastRgbConversion parameter is true, the zip compressed RGB image data in the PNG image is simply transfered to the PDF file as it is.
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

PdfPngImage Class
PdfPngImage Members
Overload List