Class SBSDKPolygon
- Namespace
- ScanbotSDK.iOS
- Assembly
- BarcodeSDK.NET.iOS.dll
public class SBSDKPolygon : NSObject, INSCopying, INativeObject, IDisposable
- Inheritance
-
SBSDKPolygon
- Implements
-
INSCopying
INativeObject
Constructors
SBSDKPolygon()
public SBSDKPolygon(AVMetadataMachineReadableCodeObject codeObject)
Parameters
codeObject AVMetadataMachineReadableCodeObject
SBSDKPolygon(CGPoint, CGPoint, CGPoint, CGPoint)
public SBSDKPolygon(CGPoint a, CGPoint b, CGPoint c, CGPoint d)
Parameters
a CGPoint
b CGPoint
c CGPoint
d CGPoint
SBSDKPolygon(CGPoint, CGPoint, CGPoint, CGPoint, CGSize)
public SBSDKPolygon(CGPoint a, CGPoint b, CGPoint c, CGPoint d, CGSize size)
Parameters
a CGPoint
b CGPoint
c CGPoint
d CGPoint
size CGSize
SBSDKPolygon(CGRect)
public SBSDKPolygon(CGRect rect)
Parameters
rect CGRect
SBSDKPolygon(NSNumber[])
public SBSDKPolygon(NSNumber[] values)
Parameters
values NSNumber[]
SBSDKPolygon(NSObjectFlag)
protected SBSDKPolygon(NSObjectFlag t)
Parameters
t NSObjectFlag
SBSDKPolygon(NativeHandle)
protected SBSDKPolygon(NativeHandle handle)
Parameters
handle NativeHandle
Properties
Center
public virtual CGPoint Center { get; }
Property Value
- CGPoint
ClassHandle
public override NativeHandle ClassHandle { get; }
Property Value
- NativeHandle
DebugDescription
public virtual string DebugDescription { get; }
Property Value
- string
NormalizedDoubleValues
public virtual NSNumber[] NormalizedDoubleValues { get; }
Property Value
- NSNumber[]
Methods
AbsoluteEdgeWithIndexForSize(nuint, CGSize)
public virtual SBSDKPolygonEdge AbsoluteEdgeWithIndexForSize(nuint index, CGSize size)
Parameters
index nuint
size CGSize
Returns
- SBSDKPolygonEdge
AbsolutePointFromNormalizedPointWithSize(CGPoint, CGSize)
public static CGPoint AbsolutePointFromNormalizedPointWithSize(CGPoint point, CGSize size)
Parameters
point CGPoint
size CGSize
Returns
- CGPoint
AbsolutePointWithIndexForSize(nuint, CGSize)
public virtual CGPoint AbsolutePointWithIndexForSize(nuint index, CGSize size)
Parameters
index nuint
size CGSize
Returns
- CGPoint
AbsolutePointsWith(CGSize)
public virtual NSValue[] AbsolutePointsWith(CGSize size)
Parameters
size CGSize
Returns
- NSValue[]
BezierPathForPreviewLayer(AVCaptureVideoPreviewLayer)
public virtual UIBezierPath BezierPathForPreviewLayer(AVCaptureVideoPreviewLayer previewLayer)
Parameters
previewLayer AVCaptureVideoPreviewLayer
Returns
- UIBezierPath
BezierPathForSize(CGSize)
public virtual UIBezierPath BezierPathForSize(CGSize size)
Parameters
size CGSize
Returns
- UIBezierPath
public virtual UIBezierPath BezierPathForSizeWithTransform(CGSize size, NFloat cornerRadius, CGAffineTransform transform)
Parameters
size CGSize
cornerRadius NFloat
transform CGAffineTransform
Returns
- UIBezierPath
BezierPathWithCornerRadiusForPreviewLayer(NFloat, AVCaptureVideoPreviewLayer, UIDeviceOrientation, bool)
public virtual UIBezierPath BezierPathWithCornerRadiusForPreviewLayer(NFloat cornerRadius, AVCaptureVideoPreviewLayer previewLayer, UIDeviceOrientation orientation, bool isFrontCamera)
Parameters
cornerRadius NFloat
previewLayer AVCaptureVideoPreviewLayer
orientation UIDeviceOrientation
isFrontCamera bool
Returns
- UIBezierPath
BoundingBoxWithSize(CGSize)
public virtual CGRect BoundingBoxWithSize(CGSize size)
Parameters
size CGSize
Returns
- CGRect
Copy(NSZone?)
public virtual NSObject Copy(NSZone? zone)
Parameters
zone NSZone
Returns
- NSObject
FlipHorizontally(CGSize)
public virtual void FlipHorizontally(CGSize size)
Parameters
size CGSize
IsEqual(NSObject?)
public virtual bool IsEqual(NSObject? @object)
Parameters
object NSObject
Returns
- bool
IsEqualToPolygon(SBSDKPolygon)
public virtual bool IsEqualToPolygon(SBSDKPolygon polygon)
Parameters
polygon SBSDKPolygon
Returns
- bool
IsSimilarToPolygon(SBSDKPolygon?)
public virtual bool IsSimilarToPolygon(SBSDKPolygon? polygon)
Parameters
polygon SBSDKPolygon
Returns
- bool
Normalize()
public virtual void Normalize()
NormalizedEdgeWithIndex(nuint)
public virtual SBSDKPolygonEdge NormalizedEdgeWithIndex(nuint index)
Parameters
index nuint
Returns
- SBSDKPolygonEdge
NormalizedPointFromAbsolutePointWithSize(CGPoint, CGSize)
public static CGPoint NormalizedPointFromAbsolutePointWithSize(CGPoint point, CGSize size)
Parameters
point CGPoint
size CGSize
Returns
- CGPoint
NormalizedPointWithIndex(nuint)
public virtual CGPoint NormalizedPointWithIndex(nuint index)
Parameters
index nuint
Returns
- CGPoint
Rotate180WithOldSize(CGSize, CGSize)
public virtual void Rotate180WithOldSize(CGSize oldSize, CGSize newSize)
Parameters
oldSize CGSize
newSize CGSize
Rotate90CCWWithOldSize(CGSize, CGSize)
public virtual void Rotate90CCWWithOldSize(CGSize oldSize, CGSize newSize)
Parameters
oldSize CGSize
newSize CGSize
Rotate90CWWithOldSize(CGSize, CGSize)
public virtual void Rotate90CWWithOldSize(CGSize oldSize, CGSize newSize)
Parameters
oldSize CGSize
newSize CGSize
RotateCCWWithSize(nuint, CGSize)
public virtual void RotateCCWWithSize(nuint times, CGSize size)
Parameters
times nuint
size CGSize
RotateCWWithSize(nuint, CGSize)
public virtual void RotateCWWithSize(nuint times, CGSize size)
Parameters
times nuint
size CGSize
SetAbsolutePointWithPointWith(CGPoint, CGSize, nuint)
public virtual void SetAbsolutePointWithPointWith(CGPoint point, CGSize size, nuint index)
Parameters
point CGPoint
size CGSize
index nuint
SetNormalizedPointForIndex(CGPoint, nuint)
public virtual void SetNormalizedPointForIndex(CGPoint point, nuint index)
Parameters
point CGPoint
index nuint
SizeWhenApplyingToImageOfSize(CGSize, double, double, double)
public virtual CGSize SizeWhenApplyingToImageOfSize(CGSize imageOfSize, double imageScale, double focalLength, double sensorWidth)
Parameters
imageOfSize CGSize
imageScale double
focalLength double
sensorWidth double
Returns
- CGSize
SortClockwise()
public virtual void SortClockwise()
StandardDeviationTo(SBSDKPolygon?)
public virtual double StandardDeviationTo(SBSDKPolygon? polygon)
Parameters
polygon SBSDKPolygon
Returns
- double