bOk = MImgSetJPGQuality( hImage, nQuality )

Sets an image's JPEG quality.

Parameters
hImage
Number: Handle of the image

nQuality
Number: The quality. Specify a value between 1 ( lowest quality ) and 100 ( highest quality ).

Return
Boolean: TRUE if successful or FALSE if an error occurs

Example

Call MImgSetJPGQuality( hImage, 100 )

Remarks
The JPEG quality doesn't modify the image. It has only an effect when you save the image as JPEG or get the image string with type JPEG.
The default value is 75.

See also
MImgGetJPGQuality
MImgGetString
MImgGetStringBase64
MImgSave
MImgSetGIFCompr
MImgSetTIFCompr

Created with the Personal Edition of HelpNDoc: Free HTML Help documentation generator