Function saveJPG
Wraps IMG_SaveJPG (from SDL_image 2.0.2) which saves a dsdl image into a JPG file in the filesystem
Parameters
| Name | Description |
|---|---|
| surface | given dsdl of the image to save |
| file | target file path to save |
| quality | value ranging from 0 to 100 specifying the image quality compensating for compression |
Throws
dsdl if failed to save