Deprecation warning
Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.
We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.
You'll find the updated documentation at: Data Capture SDK Documentation for Android
Public Member Functions | |
ScRectangleF | sc_rectangle_f_make (float position_x, float position_y, float width, float height) |
ScPointF | sc_rectangle_f_get_center (ScRectangleF rectangle) |
Data Fields | |
ScPointF | position |
ScSizeF | size |
Detailed Description
A 2-dimensional rectangle with floating point precision.
The rectangle is defined by the coordinates of the upper-left corner together with width and height. Width and height must always be larger or equal than zero.
- Since
- 4.6.0
- Examples:
- ScanditNativeBarcodeScannerCameraDemo.c.
Member Function Documentation
ScRectangleF sc_rectangle_f_make | ( | float | position_x, |
float | position_y, | ||
float | width, | ||
float | height | ||
) |
Helper function to initialize a rectangle.
- Parameters
-
position_x The x-coordinate of the top-left corner of the rectangle. position_y The y-coordinate of the top-left corner of the rectangle. width The width of the rectangle. Must not be negative. height The height of the rectangle. Must not be negative.
- Returns
- The created rectangle.
- Since
- 4.6.0
ScPointF sc_rectangle_f_get_center | ( | ScRectangleF | rectangle | ) |
Calculates and returns the center of the rectangle.
- Parameters
-
rectangle The rectangle to calculate the center of
- Returns
- Che calculated center.
- Since
- 4.7.0
The documentation for this struct was generated from the following file: