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 Images section of the C# PDF generation quick start guide for examples of using 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 Images section of the C# PDF generation quick start guide for examples of using images.
Exceptions
- ArgumentNullException
streamisnull.- UnsupportedImageException
Unsupported or invalid image.