EncodeImageToJPXFile
Image handling
Description
Decodes a bitmap stream and writes a JPEG 2000 image to a JP2 file
Syntax
Function TPDFlib.EncodeImageToJPXFile(InStream: TStream; Const FileName: WideString; Quality, Lossless: Integer): Integer;
Parameters
| InStream | Source bitmap stream whose position is restored before return |
|---|---|
| FileName | Destination JP2 file name |
| Quality | Lossy quality from 1 to 100 |
| Lossless | 1 selects reversible lossless encoding and 0 selects lossy encoding |
Return values
Returns 1 on success or 0 on failure
Remarks
A failed operation removes the partial destination file