|
iDRS™ SDK 16
|
Interface for CImageIO wrapper. More...
Go to the source code of this file.
Functions | |
| CImageIO | CImageIO_Create (const CIDRS argIdrs, idrs_exception *pargException) |
| Create object. | |
| CImage | CImageIO_LoadImage (const CImageIO argCImageIO, const idrs_string strFileName, IDRS_UINT const uiImageIndex, idrs_exception *pargException) |
| LoadImage loads an image from a file. | |
| CImage | CImageIO_LoadImage2 (const CImageIO argCImageIO, const idrs_string strFileName, idrs_exception *pargException) |
| LoadImage loads an image from a file. | |
| CImage | CImageIO_LoadImage3 (const CImageIO argCImageIO, IByteStream argInputStream, IDRS_UINT const uiImageIndex, idrs_exception *pargException) |
| LoadImage loads an image from a stream. | |
| CImage | CImageIO_LoadImage4 (const CImageIO argCImageIO, IByteStream argInputStream, idrs_exception *pargException) |
| LoadImage loads an image from a stream. | |
| void | CImageIO_SaveImage (const CImageIO argCImageIO, const CImage argImage, const idrs_string strFileName, enum ImageFormat const ffFileFormat, idrs_exception *pargException) |
| SaveImage saves an image to a file using the supplied image plugin. | |
| void | CImageIO_SaveImage2 (const CImageIO argCImageIO, const CImage argImage, IByteStream objStream, enum ImageFormat const ffFileFormat, idrs_exception *pargException) |
| SaveImage saves an image to a stream using the supplied image plugin. | |
| CPage | CImageIO_LoadPage (const CImageIO argCImageIO, const idrs_string strFileName, IDRS_UINT const uiImageIndex, idrs_exception *pargException) |
| LoadPage loads the source image from a file. | |
| CPage | CImageIO_LoadPage2 (const CImageIO argCImageIO, const idrs_string strFileName, idrs_exception *pargException) |
| LoadPage loads the source image from a file. | |
| CPage | CImageIO_LoadPage3 (const CImageIO argCImageIO, IByteStream argInputStream, IDRS_UINT const uiImageIndex, idrs_exception *pargException) |
| LoadPage loads the source image from the supplied stream. | |
| CPage | CImageIO_LoadPage4 (const CImageIO argCImageIO, IByteStream argInputStream, idrs_exception *pargException) |
| LoadPage loads the source image from the supplied stream. | |
| CDocument | CImageIO_LoadDocument (const CImageIO argCImageIO, IByteStream argInputStream, idrs_exception *pargException) |
| LoadDocument loads the source image from the supplied stream. | |
| CDocument | CImageIO_LoadDocument2 (const CImageIO argCImageIO, const idrs_string strFileName, idrs_exception *pargException) |
| LoadDocument loads the source image from the supplied stream. | |
| void | CImageIO_LoadPages (const CImageIO argCImageIO, IByteStream argInputStream, IPageCollection argPageCollection, idrs_exception *pargException) |
| Loads the source image from the supplied stream and appends resulting page(s) to the provided collection. | |
| void | CImageIO_LoadPages2 (const CImageIO argCImageIO, const idrs_string strFileName, IPageCollection argPageCollection, idrs_exception *pargException) |
| Loads the source image from the supplied stream and appends resulting page(s) to the provided collection. | |
| void | CImageIO_SavePage (const CImageIO argCImageIO, const CPage argPage, const idrs_string strFileName, enum ImageFormat const ffFileFormat, idrs_exception *pargException) |
| SavePage saves the source image to a file. | |
| void | CImageIO_SavePage2 (const CImageIO argCImageIO, const CPage argPage, IByteStream argStream, enum ImageFormat const evFileFormat, idrs_exception *pargException) |
| SavePage saves the source image to a file using the specified image compressor. | |
| IDRS_UINT | CImageIO_GetPageCount (const CImageIO argCImageIO, const idrs_string strFileName, idrs_exception *pargException) |
| Retrieves the page count for multiple page documents This function can be used in all page formats. Multiple page formats ( TIFF, PDF ) and single page formats. For single page formats the page count will be 1. | |
| IDRS_UINT | CImageIO_GetPageCount2 (const CImageIO argCImageIO, IByteStream argInputStream, idrs_exception *pargException) |
| Retrieves the page count for multiple page documents This function can be used in all page formats. Multiple page formats ( TIFF, PDF ) and single page formats. For single page formats the page count will be 1. | |
| CImageLoadOptionsPdf | CImageIO_GetPdfLoadOptions (const CImageIO argCImageIO, idrs_exception *pargException) |
| Get the PDF loading options object. | |
| void | CImageIO_SetPdfLoadOptions (CImageIO argCImageIO, const CImageLoadOptionsPdf argPdfLoadOptions, idrs_exception *pargException) |
| Set the PDF loading options with the provided object. | |
| CImageSaveOptionsJpeg | CImageIO_GetJpegSaveOptions (const CImageIO argCImageIO, idrs_exception *pargException) |
| Get the JPEG saving options object. | |
| void | CImageIO_SetJpegSaveOptions (CImageIO argCImageIO, const CImageSaveOptionsJpeg argJpegSaveOptions, idrs_exception *pargException) |
| Set the JPEG options for saving. | |
| CImageSaveOptionsJpeg2000 | CImageIO_GetJpeg2000SaveOptions (const CImageIO argCImageIO, idrs_exception *pargException) |
| Get the JPEG 2000 saving options object. | |
| void | CImageIO_SetJpeg2000SaveOptions (CImageIO argCImageIO, const CImageSaveOptionsJpeg2000 argJpeg2000SaveOptions, idrs_exception *pargException) |
| Set the JPEG 2000 options for saving. | |
| CImageSaveOptionsPng | CImageIO_GetPngSaveOptions (const CImageIO argCImageIO, idrs_exception *pargException) |
| Get the PNG saving options object. | |
| void | CImageIO_SetPngSaveOptions (CImageIO argCImageIO, const CImageSaveOptionsPng argPngSaveOptions, idrs_exception *pargException) |
| Set the PNG options for saving. | |
| CImageSaveOptionsPdf | CImageIO_GetPdfSaveOptions (const CImageIO argCImageIO, idrs_exception *pargException) |
| Get the PDF saving options object. | |
| void | CImageIO_SetPdfSaveOptions (CImageIO argCImageIO, const CImageSaveOptionsPdf argPdfSaveOptions, idrs_exception *pargException) |
| Set the PDF options for saving. | |
| CImageSaveOptionsTiff | CImageIO_GetTiffSaveOptions (const CImageIO argCImageIO, idrs_exception *pargException) |
| Get the Tiff saving options object. | |
| void | CImageIO_SetTiffSaveOptions (CImageIO argCImageIO, const CImageSaveOptionsTiff argTiffSaveOptions, idrs_exception *pargException) |
| Set the Tiff options for saving. | |
| void | CImageIO_Destroy (CImageIO argCImageIO, idrs_exception *pargException) |
| Destroys a CImageIO handle. | |
Interface for CImageIO wrapper.
| CImageIO CImageIO_Create | ( | const CIDRS | argIdrs, |
| idrs_exception * | pargException | ||
| ) |
Create object.
| argIdrs | - CIDRS handle object |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CImageIO_Destroy | ( | CImageIO | argCImageIO, |
| idrs_exception * | pargException | ||
| ) |
| CImageSaveOptionsJpeg2000 CImageIO_GetJpeg2000SaveOptions | ( | const CImageIO | argCImageIO, |
| idrs_exception * | pargException | ||
| ) |
Get the JPEG 2000 saving options object.
| argCImageIO | CImageIO handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CImageSaveOptionsJpeg CImageIO_GetJpegSaveOptions | ( | const CImageIO | argCImageIO, |
| idrs_exception * | pargException | ||
| ) |
Get the JPEG saving options object.
| argCImageIO | CImageIO handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_UINT CImageIO_GetPageCount | ( | const CImageIO | argCImageIO, |
| const idrs_string | strFileName, | ||
| idrs_exception * | pargException | ||
| ) |
Retrieves the page count for multiple page documents This function can be used in all page formats. Multiple page formats ( TIFF, PDF ) and single page formats. For single page formats the page count will be 1.
IMAGE_FILE module is required to use an image as an input, and IDRS_FILE_EXTENSION_PDF is required for pdf file input. Function will first check if all required modules are enabled and throw an exception in any different case
| argCImageIO | CImageIO handle |
| strFileName | The name of the input file. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_UINT CImageIO_GetPageCount2 | ( | const CImageIO | argCImageIO, |
| IByteStream | argInputStream, | ||
| idrs_exception * | pargException | ||
| ) |
Retrieves the page count for multiple page documents This function can be used in all page formats. Multiple page formats ( TIFF, PDF ) and single page formats. For single page formats the page count will be 1.
IMAGE_FILE module is required to use an image as an input, and IDRS_FILE_EXTENSION_PDF is required for pdf file input. Function will first check if all required modules are enabled and throw an exception in any different case
| argCImageIO | CImageIO handle |
| argInputStream | The input stream object |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CImageLoadOptionsPdf CImageIO_GetPdfLoadOptions | ( | const CImageIO | argCImageIO, |
| idrs_exception * | pargException | ||
| ) |
Get the PDF loading options object.
| argCImageIO | CImageIO handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CImageSaveOptionsPdf CImageIO_GetPdfSaveOptions | ( | const CImageIO | argCImageIO, |
| idrs_exception * | pargException | ||
| ) |
Get the PDF saving options object.
| argCImageIO | CImageIO handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CImageSaveOptionsPng CImageIO_GetPngSaveOptions | ( | const CImageIO | argCImageIO, |
| idrs_exception * | pargException | ||
| ) |
Get the PNG saving options object.
| argCImageIO | CImageIO handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CImageSaveOptionsTiff CImageIO_GetTiffSaveOptions | ( | const CImageIO | argCImageIO, |
| idrs_exception * | pargException | ||
| ) |
Get the Tiff saving options object.
| argCImageIO | CImageIO handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CDocument CImageIO_LoadDocument | ( | const CImageIO | argCImageIO, |
| IByteStream | argInputStream, | ||
| idrs_exception * | pargException | ||
| ) |
LoadDocument loads the source image from the supplied stream.
| argCImageIO | CImageIO handle |
| argInputStream | The input stream |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CDocument CImageIO_LoadDocument2 | ( | const CImageIO | argCImageIO, |
| const idrs_string | strFileName, | ||
| idrs_exception * | pargException | ||
| ) |
LoadDocument loads the source image from the supplied stream.
| argCImageIO | CImageIO handle |
| strFileName | The name of the file that contains the source image. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CImage CImageIO_LoadImage | ( | const CImageIO | argCImageIO, |
| const idrs_string | strFileName, | ||
| IDRS_UINT const | uiImageIndex, | ||
| idrs_exception * | pargException | ||
| ) |
LoadImage loads an image from a file.
| argCImageIO | CImageIO handle |
| strFileName | The name of the input file. |
| uiImageIndex | The 0 based index of the image to load from the provided file |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CImage CImageIO_LoadImage2 | ( | const CImageIO | argCImageIO, |
| const idrs_string | strFileName, | ||
| idrs_exception * | pargException | ||
| ) |
LoadImage loads an image from a file.
| argCImageIO | CImageIO handle |
| strFileName | The name of the input file. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CImage CImageIO_LoadImage3 | ( | const CImageIO | argCImageIO, |
| IByteStream | argInputStream, | ||
| IDRS_UINT const | uiImageIndex, | ||
| idrs_exception * | pargException | ||
| ) |
LoadImage loads an image from a stream.
| argCImageIO | CImageIO handle |
| argInputStream | The stream containing the image to be loaded |
| uiImageIndex | The 0 based index of the image to load from the provided file |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CImage CImageIO_LoadImage4 | ( | const CImageIO | argCImageIO, |
| IByteStream | argInputStream, | ||
| idrs_exception * | pargException | ||
| ) |
LoadImage loads an image from a stream.
| argCImageIO | CImageIO handle |
| argInputStream | The stream containing the image to be loaded |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CPage CImageIO_LoadPage | ( | const CImageIO | argCImageIO, |
| const idrs_string | strFileName, | ||
| IDRS_UINT const | uiImageIndex, | ||
| idrs_exception * | pargException | ||
| ) |
LoadPage loads the source image from a file.
| argCImageIO | CImageIO handle |
| strFileName | The name of the file that contains the source image. |
| uiImageIndex | The 0 based index of the image to load from the provided file |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CPage CImageIO_LoadPage2 | ( | const CImageIO | argCImageIO, |
| const idrs_string | strFileName, | ||
| idrs_exception * | pargException | ||
| ) |
LoadPage loads the source image from a file.
| argCImageIO | CImageIO handle |
| strFileName | The name of the file that contains the source image. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CPage CImageIO_LoadPage3 | ( | const CImageIO | argCImageIO, |
| IByteStream | argInputStream, | ||
| IDRS_UINT const | uiImageIndex, | ||
| idrs_exception * | pargException | ||
| ) |
LoadPage loads the source image from the supplied stream.
| argCImageIO | CImageIO handle |
| argInputStream | The input stream |
| uiImageIndex | The 0 based index of the image to load from the provided file |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CPage CImageIO_LoadPage4 | ( | const CImageIO | argCImageIO, |
| IByteStream | argInputStream, | ||
| idrs_exception * | pargException | ||
| ) |
LoadPage loads the source image from the supplied stream.
| argCImageIO | CImageIO handle |
| argInputStream | The input stream |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CImageIO_LoadPages | ( | const CImageIO | argCImageIO, |
| IByteStream | argInputStream, | ||
| IPageCollection | argPageCollection, | ||
| idrs_exception * | pargException | ||
| ) |
Loads the source image from the supplied stream and appends resulting page(s) to the provided collection.
| argCImageIO | CImageIO handle |
| argInputStream | The input stream |
| argPageCollection | The page collection where to append the resulting page(s). |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CImageIO_LoadPages2 | ( | const CImageIO | argCImageIO, |
| const idrs_string | strFileName, | ||
| IPageCollection | argPageCollection, | ||
| idrs_exception * | pargException | ||
| ) |
Loads the source image from the supplied stream and appends resulting page(s) to the provided collection.
| argCImageIO | CImageIO handle |
| strFileName | The name of the file that contains the source image. |
| argPageCollection | The page collection where to append the resulting page(s). |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CImageIO_SaveImage | ( | const CImageIO | argCImageIO, |
| const CImage | argImage, | ||
| const idrs_string | strFileName, | ||
| enum ImageFormat const | ffFileFormat, | ||
| idrs_exception * | pargException | ||
| ) |
SaveImage saves an image to a file using the supplied image plugin.
In case the supplied image plugin does not know how to save the indicated file format, the function with throw IDRS_ERROR_FILE_FORMAT
| void CImageIO_SaveImage2 | ( | const CImageIO | argCImageIO, |
| const CImage | argImage, | ||
| IByteStream | objStream, | ||
| enum ImageFormat const | ffFileFormat, | ||
| idrs_exception * | pargException | ||
| ) |
SaveImage saves an image to a stream using the supplied image plugin.
In case the supplied image plugin does not know how to save the indicated file format, the function with throw IDRS_ERROR_FILE_FORMAT
| argCImageIO | CImageIO handle |
| argImage | The CImage object containing the image data. |
| objStream | The IByteStream object where to write the compressed image |
| ffFileFormat | The file format |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CImageIO_SavePage | ( | const CImageIO | argCImageIO, |
| const CPage | argPage, | ||
| const idrs_string | strFileName, | ||
| enum ImageFormat const | ffFileFormat, | ||
| idrs_exception * | pargException | ||
| ) |
SavePage saves the source image to a file.
| argCImageIO | CImageIO handle |
| argPage | The CPage object containing the page data. |
| strFileName | The name of the file. |
| ffFileFormat | The file format. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CImageIO_SavePage2 | ( | const CImageIO | argCImageIO, |
| const CPage | argPage, | ||
| IByteStream | argStream, | ||
| enum ImageFormat const | evFileFormat, | ||
| idrs_exception * | pargException | ||
| ) |
SavePage saves the source image to a file using the specified image compressor.
| void CImageIO_SetJpeg2000SaveOptions | ( | CImageIO | argCImageIO, |
| const CImageSaveOptionsJpeg2000 | argJpeg2000SaveOptions, | ||
| idrs_exception * | pargException | ||
| ) |
Set the JPEG 2000 options for saving.
| argCImageIO | CImageIO handle |
| argJpeg2000SaveOptions | The CImageSaveOptionsJpeg2000 to be provided |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CImageIO_SetJpegSaveOptions | ( | CImageIO | argCImageIO, |
| const CImageSaveOptionsJpeg | argJpegSaveOptions, | ||
| idrs_exception * | pargException | ||
| ) |
Set the JPEG options for saving.
| argCImageIO | CImageIO handle |
| argJpegSaveOptions | The CImageSaveOptionsJpeg to be provided |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CImageIO_SetPdfLoadOptions | ( | CImageIO | argCImageIO, |
| const CImageLoadOptionsPdf | argPdfLoadOptions, | ||
| idrs_exception * | pargException | ||
| ) |
Set the PDF loading options with the provided object.
| argCImageIO | CImageIO handle |
| argPdfLoadOptions | The CImageLoadOptionsPdf object |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CImageIO_SetPdfSaveOptions | ( | CImageIO | argCImageIO, |
| const CImageSaveOptionsPdf | argPdfSaveOptions, | ||
| idrs_exception * | pargException | ||
| ) |
Set the PDF options for saving.
| argCImageIO | CImageIO handle |
| argPdfSaveOptions | The CImageSaveOptionsPdf to be provided |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CImageIO_SetPngSaveOptions | ( | CImageIO | argCImageIO, |
| const CImageSaveOptionsPng | argPngSaveOptions, | ||
| idrs_exception * | pargException | ||
| ) |
Set the PNG options for saving.
| argCImageIO | CImageIO handle |
| argPngSaveOptions | The CImageSaveOptionsPng to be provided |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CImageIO_SetTiffSaveOptions | ( | CImageIO | argCImageIO, |
| const CImageSaveOptionsTiff | argTiffSaveOptions, | ||
| idrs_exception * | pargException | ||
| ) |
Set the Tiff options for saving.
| argCImageIO | CImageIO handle |
| argTiffSaveOptions | The CImageSaveOptionsTiff to be provided |
| pargException | Pointer to exception structure that will be filled if an exception occurs |