SaveAsJPGFile

Modified in version 4.0

SaveAsJPGFile ( fileName ;​ fileFlag ;​ creatorType ;​ quality ;​ resolution )

Argument Type Range Default Note
fileName str 1..1000 (required) Max. 1000 chars.
fileFlag int 1..2 replace
creatorType str 4..4 "????" Ignored
quality int 1..5 high
resolution num 0.25..4 1
Examples

SaveAsJPGFile("Chart.jpg";​replace)

SaveAsJPGFile("Graphs/Graph_A.jpg")

SaveAsJPGFile("~/Plots/Plot_01.jpg";​replace;​;​max)

SaveAsJPGFile("C:/Programs/Plots/Plot_01.jpg";​replace;​;​high;​2.5)

SaveAsJPGFile("/Volumes/Macintosh HD/Plots/Plot_01.jpg")

Description

The SaveAsJPGFile() function is set up exactly the same as the SaveAsPNGFile() function. In addition, by using the 4th argument quality, the image quality of the JPEG file can be controlled. Five constants are available for this. High image quality means larger files as a result of lower compression and vice-versa, low image quality leads to smaller files with higher compression of image information. Unless otherwise defined, the JPEG file created is saved with quality = high.

Scroll to Top
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×