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
fileFileInfoThe image file.
Returns
- Image
The added image.
Remarks
Read the Inserting images section of the .NET PDF generator article for examples of working with images.
Exceptions
- ArgumentNullException
fileisnull.- UnsupportedImageException
Unsupported or invalid image.
Image(Stream)
Adds an image from stream.
public Image Image(Stream stream)
Parameters
streamStreamThe image stream.
Returns
- Image
The added image.
Remarks
Caller of the method is responsible for disposing of the stream.
Read the Inserting images section of the .NET PDF generator article for examples of working with images.
Exceptions
- ArgumentNullException
streamisnull.- UnsupportedImageException
Unsupported or invalid image.