Search Results for

    Show / Hide Table of Contents

    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)
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Free 30-Day Trial Key
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronOCR to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronOCR free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.