![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Rotate an image by 90-degree increments
#include <img.h> int img_rotate_ortho( const img_t *src, img_t *dst, img_fixed_t angle );
img
This function rotates the src image by 90-degree increments. The rotation is not a true "rotation" in that the image is not rotated about a fixed point. Rather, the image itself is rotated and the new origin of the image becomes the upper-left corner of the rotated image.
The formats of src and dst don't have to be the same; if they are different, the data is converted. A palette-based dst format is only supported if the src data also is palette-based.
![]() |
Rotation cannot be done in place. |
Image library
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
![]() |
![]() |
![]() |
![]() |