sod_img sod_rotate_crop_image(sod_img input, float rad, float s, int w, int h, float dx, float dy, float aspect);
The rotation angle, in degrees. The rotation angle is interpreted as the number of degrees to rotate the image clockwise.
Scale factor of the crop.
The width of the crop.
The height of the crop.
The x-coordinate, in logical units of the crop offset.
The y-coordinate, in logical units of the crop offset.
Aspect ratio of the crop.
Processed image is returned in an instance of the sod_img object. if something goes wrong during processing, then an empty image is returned via sod_make_empty_image(). Once done, you must release the memory allocated to this object via sod_free_image() to avoid memory leaks.