Common Data Structures
Geometric Types
Defined in namespace Scandit.DataCapture.Core.Geometry
- MeasureUnit
Added in version 6.2.0
Specifies in what units the value has been specified (fraction, device-independent pixels, pixels).
- Dip
Added in version 6.2.0
Value is measured in device-independent pixels.
- Pixel
Added in version 6.2.0
Value is measured in pixels.
- Fraction
Added in version 6.2.0
Value is measured as a fraction. Valid values range from 0 to 1. This can be used to specify values in relative coordinates with respect to a reference, e.g. the view width or height.
- SizingMode
Added in version 6.2.0
An enumeration of possible ways to define a rectangular size.
- WidthAndHeight
Added in version 6.2.0
This value will use a SizeWithUnit to determine width and the height.
- WidthAndAspectRatio
Added in version 6.2.0
This value will use a FloatWithUnit to determine the width and a float multiplier to determine the height.
- HeightAndAspectRatio
Added in version 6.2.0
This value will use a FloatWithUnit to determine the height and a float multiplier to determine the width.
- ShorterDimensionAndAspectRatio
Added in version 6.8.0
This value will use a FloatWithUnit to determine the rectangle length on the short side of the reference and a float multiplier to determine the length on the long side.
- Point
class PointAdded in version 6.2.0
- Point()
Point(
floatx,floaty)Added in version 6.2.0
Construct a new point at position x and y.
- X
floatX { get; }Added in version 6.2.0
X coordinate of the point.
- Y
floatY { get; }Added in version 6.2.0
Y coordinate of the point.
- PointWithUnit
class PointWithUnitAdded in version 6.2.0
- PointWithUnit()
PointWithUnit(FloatWithUnit x, FloatWithUnit y)
Added in version 6.2.0
Construct a new point at position x and y.
- X
FloatWithUnit X { get; }
Added in version 6.2.0
X coordinate of the point.
- Y
FloatWithUnit Y { get; }
Added in version 6.2.0
Y coordinate of the point.
- Rect
class RectAdded in version 6.2.0
- RectWithUnit
class RectWithUnitAdded in version 6.2.0
- RectWithUnit()
RectWithUnit(PointWithUnit origin, SizeWithUnit size)
Added in version 6.2.0
Construct a new rectangle with unit.
- Origin
PointWithUnit Origin { get; }
Added in version 6.2.0
The origin (top-left corner) of the rectangle.
- Size
SizeWithUnit Size { get; }
Added in version 6.2.0
The size of the rectangle.
- Size2
class Size2Added in version 6.2.0
- Size2()
Size2(
floatwidth,floatheight)Added in version 6.2.0
Construct a new Size2 instance.
- Width
floatWidth { get; }Added in version 6.2.0
The width.
- Height
floatHeight { get; }Added in version 6.2.0
The height.
- SizeWithUnit
class SizeWithUnitAdded in version 6.2.0
- SizeWithUnit()
SizeWithUnit(FloatWithUnit width, FloatWithUnit height)
Added in version 6.2.0
Construct a new size with unit.
- Width
FloatWithUnit Width { get; }
Added in version 6.2.0
The width.
- Height
FloatWithUnit Height { get; }
Added in version 6.2.0
The height.
- SizeWithAspect
class SizeWithAspectAdded in version 6.2.0
Holds values to define a rectangular size using a dimension and an aspect ratio multiplier.
- SizeWithAspect()
SizeWithAspect(FloatWithUnit size,
floataspect)Added in version 6.2.0
Construct a new size with aspect.
- Size
FloatWithUnit Size { get; }
Added in version 6.2.0
The size of one dimension.
- Aspect
floatAspect { get; }Added in version 6.2.0
The aspect ratio for the other dimension.
- FloatWithUnit
class FloatWithUnitAdded in version 6.2.0
Holds a floating-point value plus a measure unit.
- FloatWithUnit()
FloatWithUnit(
floatvalue, MeasureUnit unit)Added in version 6.2.0
Construct a new float with unit.
- Value
floatValue { get; }Added in version 6.2.0
- Unit
MeasureUnit Unit { get; }
Added in version 6.2.0
- MarginsWithUnit
class MarginsWithUnitAdded in version 6.2.0
Holds margin values (left, top, right, bottom) that can each be expressed with a different measure unit.
- MarginsWithUnit()
MarginsWithUnit(FloatWithUnit left, FloatWithUnit top, FloatWithUnit right, FloatWithUnit bottom)
Added in version 6.2.0
Constructs a new MarginsWithUnit instance.
- Left
FloatWithUnit Left { get; }
Added in version 6.2.0
Left margin.
- Right
FloatWithUnit Right { get; }
Added in version 6.2.0
Right margin.
- Top
FloatWithUnit Top { get; }
Added in version 6.2.0
Top margin.
- Bottom
FloatWithUnit Bottom { get; }
Added in version 6.2.0
Bottom margin.
- Quadrilateral
class QuadrilateralAdded in version 6.2.0
Polygon represented by 4 corners.
- SizeWithUnitAndAspect
class SizeWithUnitAndAspectAdded in version 6.2.0
Holds a SizingMode - and corresponding required values - to define a rectangular size.
- WidthAndHeight
SizeWithUnit WidthAndHeight { get; }
Added in version 6.2.0
The values for width and height.
Note
This value will always be null unless SizingMode is SizingMode.WidthAndHeight.
- WidthAndAspectRatio
SizeWithAspect WidthAndAspectRatio { get; }
Added in version 6.2.0
The value for width and the aspect ratio for height.
Note
This value will always be null unless SizingMode is SizingMode.WidthAndAspectRatio.
- HeightAndAspectRatio
SizeWithAspect HeightAndAspectRatio { get; }
Added in version 6.2.0
The value for height and the aspect ratio for width.
Note
This value will always be null unless SizingMode is SizingMode.HeightAndAspectRatio.
- ShorterDimensionAndAspectRatio
SizeWithAspect ShorterDimensionAndAspectRatio { get; }
Added in version 6.8.0
The value for the short dimension of the reference view and the aspect ratio for the long dimension of the reference view.
Note
This value will always be null unless SizingMode is SizingMode.ShorterDimensionAndAspectRatio.
- SizingMode
SizingMode SizingMode { get; }
Added in version 6.2.0
The sizing mode.
- ToJson()
stringToJson()Added in version 6.2.0
Misc Types
Defined in namespace Scandit.DataCapture.Core.Common.Async
- ICallback
interface ICallbackAdded in version 6.2.0
Interface for a callback/callable accepting a generic parameter of type T.
Defined in namespace Scandit.DataCapture.Core.Common.Buffer
- EncodingRange
class EncodingRangeAdded in version 6.2.0
Defines the encoding of a range of bytes.
- EncodingRange()
EncodingRange(
stringianaName,intstartIndex,intendIndex)Added in version 6.2.0
Construct a new encoding range.
- StartIndex
intStartIndex { get; }Added in version 6.2.0
Start index of this encoding range.
- EndIndex
intEndIndex { get; }Added in version 6.2.0
End index (first index after the last) of this encoding range.
Defined in namespace Scandit.DataCapture.Core.UI.Orientation
Defined in namespace Scandit.DataCapture.Core.Time