Table of Contents

Method Image

Namespace
BitMiracle.Docotic.Pdf.Layout
Assembly
BitMiracle.Docotic.Pdf.Layout.dll

Image(FileInfo)

Adds an image from file.

public Image Image(FileInfo file)

Parameters

file FileInfo

The image file.

Returns

Image

The added image.

Exceptions

ArgumentNullException

file is null.

UnsupportedImageException

Unsupported or invalid image.

Image(Stream)

Adds an image from stream.

public Image Image(Stream stream)

Parameters

stream Stream

The image stream.

Returns

Image

The added image.

Remarks

Caller of the method is responsible for disposing of the stream.

Exceptions

ArgumentNullException

stream is null.

UnsupportedImageException

Unsupported or invalid image.