|
Scanbot SDK
|
Classes | |
| struct | scanbotsdk_point_t |
| Represents a point with integer coordinates. More... | |
| struct | scanbotsdk_pointf_t |
| Represents a point with floating point coordinates. More... | |
| struct | scanbotsdk_rect_t |
| Represents a rectangle with integer coordinates. More... | |
| struct | scanbotsdk_rectf_t |
| Represents a rectangle with floating point coordinates. More... | |
Typedefs | |
| typedef struct scanbotsdk_point_t | scanbotsdk_point_t |
| Represents a point with integer coordinates. | |
| typedef struct scanbotsdk_pointf_t | scanbotsdk_pointf_t |
| Represents a point with floating point coordinates. | |
| typedef struct scanbotsdk_rect_t | scanbotsdk_rect_t |
| Represents a rectangle with integer coordinates. | |
| typedef struct scanbotsdk_rectf_t | scanbotsdk_rectf_t |
| Represents a rectangle with floating point coordinates. | |
| typedef struct scanbotsdk_line_segment_int_t | scanbotsdk_line_segment_int_t |
| scanbotsdk_line_segment_int_t class | |
| typedef struct scanbotsdk_line_segment_float_t | scanbotsdk_line_segment_float_t |
| scanbotsdk_line_segment_float_t class | |
| typedef struct scanbotsdk_aspect_ratio_t | scanbotsdk_aspect_ratio_t |
| scanbotsdk_aspect_ratio_t class | |
Functions | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_line_segment_int_create (scanbotsdk_point_t start, scanbotsdk_point_t end, scanbotsdk_line_segment_int_t **result) |
| Creates a new instance of scanbotsdk_line_segment_int with given params and stores it in the location specified by the last argument. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_line_segment_int_free (scanbotsdk_line_segment_int_t *object) |
| Frees the memory allocated for the instance of scanbotsdk_line_segment_int_t. If null is passed, the function does nothing. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_line_segment_int_get_start (scanbotsdk_line_segment_int_t *self, scanbotsdk_point_t *start) |
| Returns value of start field of the given object. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_line_segment_int_get_end (scanbotsdk_line_segment_int_t *self, scanbotsdk_point_t *end) |
| Returns value of end field of the given object. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_line_segment_float_create (scanbotsdk_pointf_t start, scanbotsdk_pointf_t end, scanbotsdk_line_segment_float_t **result) |
| Creates a new instance of scanbotsdk_line_segment_float with given params and stores it in the location specified by the last argument. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_line_segment_float_free (scanbotsdk_line_segment_float_t *object) |
| Frees the memory allocated for the instance of scanbotsdk_line_segment_float_t. If null is passed, the function does nothing. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_line_segment_float_get_start (scanbotsdk_line_segment_float_t *self, scanbotsdk_pointf_t *start) |
| Returns value of start field of the given object. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_line_segment_float_get_end (scanbotsdk_line_segment_float_t *self, scanbotsdk_pointf_t *end) |
| Returns value of end field of the given object. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_aspect_ratio_create (double width, double height, scanbotsdk_aspect_ratio_t **result) |
| Creates a new instance of scanbotsdk_aspect_ratio with given params and stores it in the location specified by the last argument. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_aspect_ratio_create_with_defaults (scanbotsdk_aspect_ratio_t **result) |
| Creates a new instance of scanbotsdk_aspect_ratio_t with given required params and stores it in the location specified by the last argument. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_aspect_ratio_free (scanbotsdk_aspect_ratio_t *object) |
| Frees the memory allocated for the instance of scanbotsdk_aspect_ratio_t. If null is passed, the function does nothing. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_aspect_ratio_get_width (scanbotsdk_aspect_ratio_t *self, double *width) |
| Returns value of width field of the given object. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_aspect_ratio_get_height (scanbotsdk_aspect_ratio_t *self, double *height) |
| Returns value of height field of the given object. | |
| struct scanbotsdk_point_t |
| struct scanbotsdk_pointf_t |
| struct scanbotsdk_rect_t |
| struct scanbotsdk_rectf_t |
| typedef struct scanbotsdk_aspect_ratio_t scanbotsdk_aspect_ratio_t |
scanbotsdk_aspect_ratio_t class
Aspect ratio is the ratio of the width to the height of an image or screen.
| typedef struct scanbotsdk_line_segment_float_t scanbotsdk_line_segment_float_t |
scanbotsdk_line_segment_float_t class
Represents a line segment in 2D space.
| typedef struct scanbotsdk_line_segment_int_t scanbotsdk_line_segment_int_t |
scanbotsdk_line_segment_int_t class
Represents a line segment in 2D space.
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_aspect_ratio_create | ( | double | width, |
| double | height, | ||
| scanbotsdk_aspect_ratio_t ** | result ) |
Creates a new instance of scanbotsdk_aspect_ratio with given params and stores it in the location specified by the last argument.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| width | Width component of the aspect ratio. |
Default is 1.0
| height | Height component of the aspect ratio. |
Default is 1.0
| result | Pointer to a variable that will store the created instance of scanbotsdk_aspect_ratio_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_aspect_ratio_create_with_defaults | ( | scanbotsdk_aspect_ratio_t ** | result | ) |
Creates a new instance of scanbotsdk_aspect_ratio_t with given required params and stores it in the location specified by the last argument.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| result | Pointer to a variable that will store the created instance of scanbotsdk_aspect_ratio_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_aspect_ratio_free | ( | scanbotsdk_aspect_ratio_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_aspect_ratio_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_aspect_ratio_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_aspect_ratio_get_height | ( | scanbotsdk_aspect_ratio_t * | self, |
| double * | height ) |
Returns value of height field of the given object.
Height component of the aspect ratio.
Default is 1.0
| self | Pointer to the instance of scanbotsdk_aspect_ratio_t |
| height | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_aspect_ratio_get_width | ( | scanbotsdk_aspect_ratio_t * | self, |
| double * | width ) |
Returns value of width field of the given object.
Width component of the aspect ratio.
Default is 1.0
| self | Pointer to the instance of scanbotsdk_aspect_ratio_t |
| width | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_line_segment_float_create | ( | scanbotsdk_pointf_t | start, |
| scanbotsdk_pointf_t | end, | ||
| scanbotsdk_line_segment_float_t ** | result ) |
Creates a new instance of scanbotsdk_line_segment_float with given params and stores it in the location specified by the last argument.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| start | Start point of the segment. |
| end | End point of the segment. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_line_segment_float_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_line_segment_float_free | ( | scanbotsdk_line_segment_float_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_line_segment_float_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_line_segment_float_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_line_segment_float_get_end | ( | scanbotsdk_line_segment_float_t * | self, |
| scanbotsdk_pointf_t * | end ) |
Returns value of end field of the given object.
End point of the segment.
| self | Pointer to the instance of scanbotsdk_line_segment_float_t |
| end | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_line_segment_float_get_start | ( | scanbotsdk_line_segment_float_t * | self, |
| scanbotsdk_pointf_t * | start ) |
Returns value of start field of the given object.
Start point of the segment.
| self | Pointer to the instance of scanbotsdk_line_segment_float_t |
| start | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_line_segment_int_create | ( | scanbotsdk_point_t | start, |
| scanbotsdk_point_t | end, | ||
| scanbotsdk_line_segment_int_t ** | result ) |
Creates a new instance of scanbotsdk_line_segment_int with given params and stores it in the location specified by the last argument.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| start | Start point of the segment. |
| end | End point of the segment. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_line_segment_int_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_line_segment_int_free | ( | scanbotsdk_line_segment_int_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_line_segment_int_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_line_segment_int_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_line_segment_int_get_end | ( | scanbotsdk_line_segment_int_t * | self, |
| scanbotsdk_point_t * | end ) |
Returns value of end field of the given object.
End point of the segment.
| self | Pointer to the instance of scanbotsdk_line_segment_int_t |
| end | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_line_segment_int_get_start | ( | scanbotsdk_line_segment_int_t * | self, |
| scanbotsdk_point_t * | start ) |
Returns value of start field of the given object.
Start point of the segment.
| self | Pointer to the instance of scanbotsdk_line_segment_int_t |
| start | Pointer to a variable that will store the value of the field. |