Prev: png.html Up Next: bmp.html
The jpg terminal

Practical Guide:

plot("filename")....;   // plot something
jpg::print("file.jpg","");
    // print it to a jpg file named file.jpg
    // the second argument is the options to beps2jpg

This is a terminal derived from blopeps: first a blopeps file is created, and then it is transformed to a jpg file using the beps2jpg tool of blop. The static print(filename,opts) function of the jpg terminal can be used to print the current canvas to a file specified by the first argument, the second argument specifies the options to be given to beps2jpg (see beps2jpg --help for help)

Source files:
   jpg.h
   jpg.cc

Prev: png.html Up Next: bmp.html