Scanbot SDK
Loading...
Searching...
No Matches
ScanbotSDKImageManipulator.h File Reference

Go to the source code of this file.

Typedefs

typedef struct scanbotsdk_image_manipulator_t scanbotsdk_image_manipulator_t
 scanbotsdk_image_manipulator_t class
 

Functions

SBSDK_API scanbotsdk_error_code_t scanbotsdk_image_manipulator_create (scanbotsdk_image_manipulator_t **result)
 Creates a new instance of scanbotsdk_image_manipulator with given params and stores it in the location specified by the last argument.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_image_manipulator_free (scanbotsdk_image_manipulator_t *self)
 Frees the memory allocated for the instance of scanbotsdk_image_manipulator_t. If null is passed, the function does nothing.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_image_manipulator_crop_rect (scanbotsdk_image_manipulator_t *self, scanbotsdk_image_t *image, scanbotsdk_rectf_t rect, scanbotsdk_image_t **result)
 Crops out the given rectangle from the image.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_image_manipulator_rotate (scanbotsdk_image_manipulator_t *self, scanbotsdk_image_t *image, scanbotsdk_image_rotation_t rotation, scanbotsdk_image_t **result)
 Rotates the given image by the given angle.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_image_manipulator_flip (scanbotsdk_image_manipulator_t *self, scanbotsdk_image_t *image, scanbotsdk_image_origin_t origin, scanbotsdk_image_t **result)
 Flips the given image horizontally or vertically.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_image_manipulator_resize (scanbotsdk_image_manipulator_t *self, scanbotsdk_image_t *image, int size, scanbotsdk_image_t **result)
 Resizes the given image to the given size.