Skip to content

PdfPngImage Constructors

Overloads

Name Description
PdfPngImage(String) Initializes a new PdfPngImage object.
PdfPngImage(String,Boolean) Initializes a new PdfPngImage object.
PdfPngImage(Stream) Initializes a new PdfPngImage object.
PdfPngImage(Stream,Boolean) Initializes a new PdfPngImage object.

PdfPngImage(String)

Initializes a new PdfPngImage object.

C#
public PdfPngImage(string fileName)

Parameters

fileName String

Path to PNG image.

PdfPngImage(String,Boolean)

Initializes a new PdfPngImage object.

C#
public PdfPngImage(string fileName, bool fastRgbConversion)

Parameters

fileName String

Path to PNG image.

fastRgbConversion Boolean

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.

PdfPngImage(Stream)

Initializes a new PdfPngImage object.

C#
public PdfPngImage(Stream stream)

Parameters

stream Stream

PNG stream.

PdfPngImage(Stream,Boolean)

Initializes a new PdfPngImage object.

C#
public PdfPngImage(Stream stream, bool fastRgbConversion)

Parameters

stream Stream

PNG stream.

fastRgbConversion Boolean

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.