VuoImageRotate implementation.
Definition in file VuoImageRotate.c.
Go to the source code of this file.
Functions | |
VuoImageRotate | VuoImageRotate_make (void) |
Initializes image rotator state. | |
static void | VuoImageRotate_getTargetDimensions (int width, int height, float rotation_radians, int *resized_width, int *resized_height) |
Outputs the width and height of the minimal axis-aligned bounding box after rotating the image. | |
VuoImage | VuoImageRotate_rotate (VuoImage image, VuoImageRotate rotator, VuoReal angleInDegrees, VuoBoolean expandBounds) |
Returns a new, rotated copy of the specified image. | |
|
static |
Outputs the width and height of the minimal axis-aligned bounding box after rotating the image.
Definition at line 40 of file VuoImageRotate.c.
VuoImageRotate VuoImageRotate_make | ( | void | ) |
Initializes image rotator state.
It's OK to use the same state to rotate multiple images of different sizes and types.
Definition at line 32 of file VuoImageRotate.c.
VuoImage VuoImageRotate_rotate | ( | VuoImage | image, |
VuoImageRotate | rotator, | ||
VuoReal | angleInDegrees, | ||
VuoBoolean | expandBounds | ||
) |
Returns a new, rotated copy of the specified image.
Definition at line 68 of file VuoImageRotate.c.