return writeJPEG(win, data, fname, w, h, q);
return writeJPEG(win, data, fname, r.width, r.height, q);
public static vValue Write(vWindow win, String fname,			    int x, int y, int w, int h, double q) {    final int[] data = Grab(win, x, y, w, h);    if (data == null) {    	return null; /*FAIL*/    }    // AFTER grabbing, convert w & h to positive    if (w < 0) { w = -w; }    if (h < 0) { h = -h; }    String lfname = fname.toLowerCase();    if (lfname.endsWith(".jpg") || lfname.endsWith(".jpeg")) {	return writeJPEG(win, data, fname, w, h, q);    } else {	return writeGIF(win, data, fname, w, h, q);    }}