SCCompressPicture
The SCCompressPicture function compresses a picture that is stored in a handle.
pascal ComponentResult SCCompressPicture (ComponentInstance ci,
PicHandle srcPicture,
PicHandle dstPicture);
ci
- Identifies your application's connection to a standard image-compression dialog component.
srcPicture
- Contains a handle to the picture to be compressed.
dstPicture
- Contains a handle to the compressed picture. The standard dialog component resizes this handle to accommodate the compressed picture. Your application is responsible for creating and disposing of this handle when you are done with it.
RESULT CODES
| scUserCancelled | 1 | Dialog box canceled--user clicked Cancel |
Image Compression Manager errors (from FCompressPicture function)