Method OpenImage
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
OpenImage(byte[])
Opens the image and constructs a collection of its frames (pages).
public PdfImageFrames? OpenImage(byte[] imageBuffer)
Parameters
imageBuffer
byte[]The buffer with image bytes.
Returns
- PdfImageFrames
The collection of image frames (pages) or
null
if image format is unsupported.
Remarks
This method does not load image data and does not add images to the collection of document images.
This method is useful if you want to add only some of the image frames (pages) to document or if you want to recompress image frames before adding them to document.
Please use one of the AddImage methods to add a frame from collection of frames to the collection of document images.
OpenImage(string)
Opens the image and constructs a collection of its frames (pages).
public PdfImageFrames? OpenImage(string fileName)
Parameters
fileName
stringName of the image file.
Returns
- PdfImageFrames
The collection of image frames (pages) or
null
if image format is unsupported.
Remarks
This method does not load image data and does not add images to the collection of document images.
This method is useful if you want to add only some of the image frames (pages) to document or if you want to recompress image frames before adding them to document.
Please use one of the AddImage methods to add a frame from collection of frames to the collection of document images.
OpenImage(Stream)
Opens the image and constructs a collection of its frames (pages).
public PdfImageFrames? OpenImage(Stream stream)
Parameters
stream
StreamThe stream with image bytes.
Returns
- PdfImageFrames
The collection of image frames (pages) or
null
if image format is unsupported.
Remarks
This method does not load image data and does not add images to the collection of document images.
This method is useful if you want to add only some of the image frames (pages) to document or if you want to recompress image frames before adding them to document.
Please use one of the AddImage methods to add a frame from collection of frames to the collection of document images.