Vuo 2.4.4
Loading...
Searching...
No Matches
Functions
VuoImageRotate.c File Reference

Description

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.
 

Function Documentation

◆ VuoImageRotate_getTargetDimensions()

static void VuoImageRotate_getTargetDimensions ( int  width,
int  height,
float  rotation_radians,
int *  resized_width,
int *  resized_height 
)
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_make()

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.

◆ VuoImageRotate_rotate()

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.