Skip to content

PdfRawImage Constructors

Overloads

Name Description
PdfRawImage(PdfCosStream) Initializes a new PdfRawImage object with the specified COS stream.
PdfRawImage(String) Initializes a new PdfRawImage object.
PdfRawImage(String,Boolean) Initializes a new PdfRawImage object.
PdfRawImage(Stream) Initializes a new PdfRawImage object.
PdfRawImage(Stream,Boolean) Initializes a new PdfRawImage object.

PdfRawImage(PdfCosStream)

Initializes a new PdfRawImage object with the specified COS stream.

C#
public PdfRawImage(PdfCosStream cosImageStream)

Parameters

cosImageStream PdfCosStream

A COS stream that represents an image object.

Remarks

The COS stream representing the image is assumed to be valid. Creating an image from an invalid COS stream and drawing the image on a PDF page can lead to undefined results when the PDF file is displayed.

PdfRawImage(String)

Initializes a new PdfRawImage object.

C#
public PdfRawImage(string fileName)

Parameters

fileName String

Path to RAW image.

PdfRawImage(String,Boolean)

Initializes a new PdfRawImage object.

C#
public PdfRawImage(string fileName, bool compress)

Parameters

fileName String

Path to RAW image.

compress Boolean

Flag to indicate whether the raw image data should be compressed before writing it in the PDF file.

PdfRawImage(Stream)

Initializes a new PdfRawImage object.

C#
public PdfRawImage(Stream stream)

Parameters

stream Stream

Raw image stream.

PdfRawImage(Stream,Boolean)

Initializes a new PdfRawImage object.

C#
public PdfRawImage(Stream stream, bool compress)

Parameters

stream Stream

Raw image stream.

compress Boolean

Flag to indicate whether the raw image data should be compressed before writing it in the PDF file.