SaveAsJPGFile

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("~/Desktop/Plots/Plot_01.jpg";​replace;​;​high;​2.5)

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

SaveAsJPGFile("/C:/Users/Public/Documents/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.
In Linux the function SaveAsJPGFile() is ignored.

Scroll to Top