Search Results for

    Show / Hide Table of Contents

    Struct Size2f

    Represents the sub-pixel accurate size of a rectangle.

    Implements
    IEquatable<Size2f>
    Namespace: OpenCV.Net
    Assembly: OpenCV.Net.dll
    Syntax
    public struct Size2f : IEquatable<Size2f>

    Constructors

    | Improve this Doc View Source

    Size2f(Single, Single)

    Initializes a new instance of the Size2f structure from the specified dimensions.

    Declaration
    public Size2f(float width, float height)
    Parameters
    Type Name Description
    Single width

    The width of the rectangle.

    Single height

    The height of the rectangle.

    Fields

    | Improve this Doc View Source

    Height

    The height of the rectangle.

    Declaration
    public float Height
    Field Value
    Type Description
    Single
    | Improve this Doc View Source

    Width

    The width of the rectangle.

    Declaration
    public float Width
    Field Value
    Type Description
    Single

    Methods

    | Improve this Doc View Source

    Equals(Size2f)

    Returns a value indicating whether this instance has the same dimensions as a specified Size2f structure.

    Declaration
    public bool Equals(Size2f other)
    Parameters
    Type Name Description
    Size2f other

    The Size2f structure to compare to this instance.

    Returns
    Type Description
    Boolean

    true if other has the same width and height as this instance; otherwise, false.

    | Improve this Doc View Source

    Equals(Object)

    Tests to see whether the specified object is a Size2f structure with the same dimensions as this Size2f structure.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The to test.

    Returns
    Type Description
    Boolean

    true if obj is a Size2f and has the same width and height as this Size2f; otherwise, false.

    | Improve this Doc View Source

    GetHashCode()

    Returns a hash code for this Size2f structure.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    An integer value that specifies a hash value for this Size2f structure.

    | Improve this Doc View Source

    ToString()

    Creates a representation of this Size2f structure.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A containing the Width and Height values of this Size2f structure.

    Operators

    | Improve this Doc View Source

    Equality(Size2f, Size2f)

    Tests whether two Size2f structures are equal.

    Declaration
    public static bool operator ==(Size2f left, Size2f right)
    Parameters
    Type Name Description
    Size2f left

    The Size2f structure on the left of the equality operator.

    Size2f right

    The Size2f structure on the right of the equality operator.

    Returns
    Type Description
    Boolean

    true if left and right have equal width and height; otherwise, false.

    | Improve this Doc View Source

    Inequality(Size2f, Size2f)

    Tests whether two Size2f structures are different.

    Declaration
    public static bool operator !=(Size2f left, Size2f right)
    Parameters
    Type Name Description
    Size2f left

    The Size2f structure on the left of the inequality operator.

    Size2f right

    The Size2f structure on the right of the inequality operator.

    Returns
    Type Description
    Boolean

    true if left and right differ either in width or height; false if left and right are equal.

    Implements

    IEquatable<>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX