re_rotateimage()

extern ReImageHandle KADMOS_API re_rotateimage
  (const ReImage *image, ReImage *rotateimage, int angle);
      

Parameter:

image
Address of the image to be rotated.
rotateimage
Address of a ReImage data structure to be filled in with the data of the rotated image.
angle
Rotation angle in degrees.

Return value:

Handle of the allocated memory, NULL in case of error.

Comment:

This function rotates the given image in mathematically positive direction (against the clock) and negative direction (with the clock). In case of error the NULL pointer will be returned, the error text can be retrieved with re_GetErrorText(). In case of success a handle of the allocated memory will be returned. This memory can be freed by a call to re_freeimage() with the given handle.

Reference: