250
254
JpegScreen::imageToFile (CompString &path,
257
261
CompString fileName = fileNameWithExtension (path);
259
263
if (format == "jpeg" || format == "jpg" ||
260
264
!(status = screen->imageToFile (path, format, size, stride, data)))
266
270
status = writeJPEG ((unsigned char *) data, file, size, stride);