The standard dialog component provides three functions you may use to compress a still image. These functions differ based on how the image is stored: SCCompressImage works with pixel maps; SCCompressPicture compresses a picture that is stored in a handle; and SCCompressPictureFile works with pictures stored in files.
The SCCompressPicture function compresses a picture that is stored in a handle.
FUNCTION SCCompressPicture (ci as ComponentInstance,srcPicture as PicHandle,dstPicture as PicHandle ) as Integer
scUserCancelled |
1 |
Dialog box canceled--user clicked Cancel |
Image Compression Manager errors (from FCompressPicture function)
The SCCompressPictureFile function compresses a picture that is stored in a file.
FUNCTION SCCompressPictureFile(ci as ComponentInstance,srcRefNum as Integer,dstRefNum as Integer)
scUserCancelled |
1 |
Dialog box canceled--user clicked Cancel |
Image Compression Manager errors (from FCompressPictureFile function)