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 SBSDKLineSegment AbsoluteEdgeWithIndexForSize(nuint index, CGSize size)
Parameters
index nuint
size CGSize
Returns
- SBSDKLineSegment
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()
public virtual void FlipHorizontally()
FlipVertically()
public virtual void FlipVertically()
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 SBSDKLineSegment NormalizedEdgeWithIndex(nuint index)
Parameters
index nuint
Returns
- SBSDKLineSegment
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
RotateCCW(nuint)
public virtual void RotateCCW(nuint times)
Parameters
times nuint
RotateCW(nuint)
public virtual void RotateCW(nuint times)
Parameters
times nuint
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
SortClockwise()
public virtual void SortClockwise()
StandardDeviationTo(SBSDKPolygon?)
public virtual double StandardDeviationTo(SBSDKPolygon? polygon)
Parameters
polygon SBSDKPolygon
Returns
- double