Class CropRectangle
Inheritance
System.Object
CropRectangle
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: IronOcr
Assembly: IronOcr.dll
Syntax
public class CropRectangle
Constructors
CropRectangle(Rectangle, CropRectangle.MeasurementUnits)
Declaration
public CropRectangle(Rectangle rect, CropRectangle.MeasurementUnits units = CropRectangle.MeasurementUnits.Pixels)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | rect | |
CropRectangle.MeasurementUnits | units |
CropRectangle(Single, Single, Single, Single, CropRectangle.MeasurementUnits)
Declaration
public CropRectangle(float x, float y, float width, float height, CropRectangle.MeasurementUnits units = CropRectangle.MeasurementUnits.Pixels)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | |
System.Single | y | |
System.Single | width | |
System.Single | height | |
CropRectangle.MeasurementUnits | units |
Properties
Height
Declaration
public float Height { get; }
Property Value
Type | Description |
---|---|
System.Single |
Rectangle
Declaration
public RectangleF Rectangle { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.RectangleF |
Units
Declaration
public CropRectangle.MeasurementUnits Units { get; set; }
Property Value
Type | Description |
---|---|
CropRectangle.MeasurementUnits |
Width
Declaration
public float Width { get; }
Property Value
Type | Description |
---|---|
System.Single |
X
Declaration
public float X { get; }
Property Value
Type | Description |
---|---|
System.Single |
Y
Declaration
public float Y { get; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
ConvertTo(CropRectangle.MeasurementUnits, Int32)
Declaration
public CropRectangle ConvertTo(CropRectangle.MeasurementUnits units, int dpi)
Parameters
Type | Name | Description |
---|---|---|
CropRectangle.MeasurementUnits | units | |
System.Int32 | dpi |
Returns
Type | Description |
---|---|
CropRectangle |
Operators
Implicit(CropRectangle to Nullable<Rectangle>)
Declaration
public static implicit operator Rectangle? (CropRectangle value)
Parameters
Type | Name | Description |
---|---|---|
CropRectangle | value |
Returns
Type | Description |
---|---|
System.Nullable<System.Drawing.Rectangle> |
Implicit(CropRectangle to Nullable<RectangleF>)
Declaration
public static implicit operator RectangleF? (CropRectangle value)
Parameters
Type | Name | Description |
---|---|---|
CropRectangle | value |
Returns
Type | Description |
---|---|
System.Nullable<System.Drawing.RectangleF> |
Inherited members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)