|
Opait PDF Library
|
Class represents a multi-page image for embedding in PDF documents. More...
Public Member Functions | |
| PdfImagePage | GetPage (int pageNumber) |
| Gets the image page at the specified index. More... | |
| void | AddPage (PdfImagePage imagePage) |
| Add the specified page to the image file. More... | |
| void | Save (string fileName) |
| Saves the image to the specified path. More... | |
| void | Save (Stream stream, FileFormat fileFormat) |
| Saves the image to the specified stream. More... | |
| void | Dispose () |
| Closes the image file when all references are released. | |
Static Public Member Functions | |
| static PdfImage | Create () |
| Create a new image file. More... | |
| static PdfImage | FromFile (string fileName) |
| Creates an instance of the PdfImage from the specified file. More... | |
| static PdfImage | FromStream (Stream stream) |
| Creates an instance of the PdfImage from the specified stream. More... | |
Properties | |
| int | PageCount [get] |
| Gets the number of pages in the image document. | |
| int | JpegQuality [get, set] |
| Gets or sets the quality percentile for JPEG compression. Default is 75. | |
Class represents a multi-page image for embedding in PDF documents.
| void Opait.Pdf.Api.PdfImage.AddPage | ( | PdfImagePage | imagePage | ) |
Add the specified page to the image file.
| imagePage | The image page to add. |
|
static |
Create a new image file.
|
static |
|
static |
| PdfImagePage Opait.Pdf.Api.PdfImage.GetPage | ( | int | pageNumber | ) |
Gets the image page at the specified index.
| pageNumber | The zero-based index of the image page. |
| void Opait.Pdf.Api.PdfImage.Save | ( | Stream | stream, |
| FileFormat | fileFormat | ||
| ) |
Saves the image to the specified stream.
| stream | Open stream for saving image. |
| fileFormat | File format of the saved image. |
| void Opait.Pdf.Api.PdfImage.Save | ( | string | fileName | ) |
Saves the image to the specified path.
| fileName | The path to the saved image. |