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
FileInfoThe 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
file
isnull
.- UnsupportedImageException
Unsupported or invalid image.
Image(Stream)
Adds an image from stream.
public Image Image(Stream stream)
Parameters
stream
StreamThe 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
stream
isnull
.- UnsupportedImageException
Unsupported or invalid image.