The method SaveToFile from GpImage class in _gdiplus.vcx from VFP9 “Saves the image object to a disk file, using specified encoder or image format and optional parameters.”
Here are the most important:
QUALITY (Supported by JPEG)
Specifies the compression
Read More