IPI_ImageToPageSegment()
This subprocedure is used to convert an image which was previously loaded by IPI_LoadImage() into a page segment (*PAGSEG) which can be used with AFPDS printing on the IBM i.
The dimensions of the page segment being created can be specified in inches using the Width and Height subfields of the IPI_PageSegmentDS_t to resize the output.
Subprocedure Prototype
|
Returns *OFF if an error occurs during processing, *ON otherwise. |
|
Contains image data previously loaded by IPI_LoadImage() |
|
Contains configuration information about the page segment to create. |
|
Optional parameter that, if passed, will contain error data returned from the subprocedure. If it is not passed, exceptions will instead be "thrown" and must be caught by a MONITOR block. |
Data Structures
|
|
|
Specify the object name used to create the page segment |
|
Specify the library where the page segment will be created |
|
Specify the desired output width in inches |
|
Specify the desired output height in inches |
|
|
|
Internal use only |
|
Internal use only |
|
Internal use only |
|
Internal use only |
|
Internal use only |
|
Internal use only |
|
|
|
Name of the subprocedure that encountered an error. |
|
Message ID corresponding to the error that occurred. |
|
Error message text providing details about the error. |