Show / Hide Table of Contents

    Struct NppiRect

    2D Rectangle

    This struct contains position and size information of a rectangle in two space.

    The rectangle's position is usually signified by the coordinate of its upper-left corner.

    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: ManagedCuda.NPP
    Assembly: NPP.dll
    Syntax
    public struct NppiRect

    Constructors

    | Improve this Doc View Source

    NppiRect(NppiPoint, NppiSize)

    Non-default constructor

    Declaration
    public NppiRect(NppiPoint aPoint, NppiSize aSize)
    Parameters
    Type Name Description
    NppiPoint aPoint
    NppiSize aSize
    | Improve this Doc View Source

    NppiRect(Int32, Int32, Int32, Int32)

    Non-default constructor

    Declaration
    public NppiRect(int aX, int aY, int aWidth, int aHeight)
    Parameters
    Type Name Description
    System.Int32 aX
    System.Int32 aY
    System.Int32 aWidth
    System.Int32 aHeight

    Fields

    | Improve this Doc View Source

    height

    Rectangle height.

    Declaration
    public int height
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    width

    Rectangle width.

    Declaration
    public int width
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    x

    x-coordinate of upper left corner.

    Declaration
    public int x
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    y

    y-coordinate of upper left corner.

    Declaration
    public int y
    Field Value
    Type Description
    System.Int32

    Properties

    | Improve this Doc View Source

    Bottom

    Gets the y-coordinate that is the sum of the y and height values - 1.

    Declaration
    public int Bottom { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    IsEmtpy

    Tests whether all numeric properties of this Rectangle have values of zero.

    Declaration
    public bool IsEmtpy { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Left

    Gets the x-coordinate of the left edge.

    Declaration
    public int Left { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Location

    Returns the x and y component as NppiPoint

    Declaration
    public NppiPoint Location { get; set; }
    Property Value
    Type Description
    NppiPoint
    | Improve this Doc View Source

    Right

    Gets the x-coordinate that is the sum of x and width values - 1.

    Declaration
    public int Right { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Size

    Returns the width and height component as NppiSize

    Declaration
    public NppiSize Size { get; set; }
    Property Value
    Type Description
    NppiSize
    | Improve this Doc View Source

    Top

    Gets the y-coordinate of the top edge.

    Declaration
    public int Top { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    Add(NppiPoint, NppiRect)

    per element Add

    Declaration
    public static NppiRect Add(NppiPoint src, NppiRect value)
    Parameters
    Type Name Description
    NppiPoint src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Add(NppiRect, NppiPoint)

    per element Add

    Declaration
    public static NppiRect Add(NppiRect src, NppiPoint value)
    Parameters
    Type Name Description
    NppiRect src
    NppiPoint value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Add(NppiRect, NppiRect)

    per element Add

    Declaration
    public static NppiRect Add(NppiRect src, NppiRect value)
    Parameters
    Type Name Description
    NppiRect src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Add(NppiRect, NppiSize)

    per element Add

    Declaration
    public static NppiRect Add(NppiRect src, NppiSize value)
    Parameters
    Type Name Description
    NppiRect src
    NppiSize value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Add(NppiRect, Int32)

    per element Add

    Declaration
    public static NppiRect Add(NppiRect src, int value)
    Parameters
    Type Name Description
    NppiRect src
    System.Int32 value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Add(NppiSize, NppiRect)

    per element Add

    Declaration
    public static NppiRect Add(NppiSize src, NppiRect value)
    Parameters
    Type Name Description
    NppiSize src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Add(Int32, NppiRect)

    per element Add

    Declaration
    public static NppiRect Add(int src, NppiRect value)
    Parameters
    Type Name Description
    System.Int32 src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Contains(NppiPoint)

    Determines if the specified point is contained within this Rectangle structure.

    Declaration
    public bool Contains(NppiPoint point)
    Parameters
    Type Name Description
    NppiPoint point
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Contains(NppiRect)

    Determines if the rectangular region represented by rect is entirely contained within this Rectangle structure.

    Declaration
    public bool Contains(NppiRect rect)
    Parameters
    Type Name Description
    NppiRect rect
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Contains(Int32, Int32)

    Determines if the specified point is contained within this Rectangle structure.

    Declaration
    public bool Contains(int px, int py)
    Parameters
    Type Name Description
    System.Int32 px
    System.Int32 py
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Deflate(NppiSize)

    Reduces this Rectangle by the specified amount.

    Declaration
    public void Deflate(NppiSize val)
    Parameters
    Type Name Description
    NppiSize val
    | Improve this Doc View Source

    Deflate(Int32)

    Reduces this Rectangle by the specified amount.

    Declaration
    public void Deflate(int val)
    Parameters
    Type Name Description
    System.Int32 val
    | Improve this Doc View Source

    Deflate(Int32, Int32)

    Reduces this Rectangle by the specified amount.

    Declaration
    public void Deflate(int valX, int valY)
    Parameters
    Type Name Description
    System.Int32 valX
    System.Int32 valY
    | Improve this Doc View Source

    Divide(NppiPoint, NppiRect)

    per element Add

    Declaration
    public static NppiRect Divide(NppiPoint src, NppiRect value)
    Parameters
    Type Name Description
    NppiPoint src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Divide(NppiRect, NppiPoint)

    per element Add

    Declaration
    public static NppiRect Divide(NppiRect src, NppiPoint value)
    Parameters
    Type Name Description
    NppiRect src
    NppiPoint value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Divide(NppiRect, NppiRect)

    per element Divide

    Declaration
    public static NppiRect Divide(NppiRect src, NppiRect value)
    Parameters
    Type Name Description
    NppiRect src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Divide(NppiRect, NppiSize)

    per element Add

    Declaration
    public static NppiRect Divide(NppiRect src, NppiSize value)
    Parameters
    Type Name Description
    NppiRect src
    NppiSize value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Divide(NppiRect, Int32)

    per element Divide

    Declaration
    public static NppiRect Divide(NppiRect src, int value)
    Parameters
    Type Name Description
    NppiRect src
    System.Int32 value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Divide(NppiSize, NppiRect)

    per element Add

    Declaration
    public static NppiRect Divide(NppiSize src, NppiRect value)
    Parameters
    Type Name Description
    NppiSize src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Divide(Int32, NppiRect)

    per element Divide

    Declaration
    public static NppiRect Divide(int src, NppiRect value)
    Parameters
    Type Name Description
    System.Int32 src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Equals(NppiRect)

    Declaration
    public bool Equals(NppiRect value)
    Parameters
    Type Name Description
    NppiRect value
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()
    | Improve this Doc View Source

    GetResizeTiledSourceOffset(NppiRect)

    Helper function that can be used when tiling a destination image with a source image using multiple Resize calls. oSrcRectROI and oDstRectROI widths and heights should remain unmodified even if they will overlap source and destination image sizes.oDstRectROI offsets should be set to the destination offset of the new tile. Resize function processing will stop when source or destination image sizes are reached, any unavailable source image pixels beyond source image size will be border replicated.There is no particular association assumed between source and destination image locations. The values of oSrcRectROI.x and oSrcRectROI.y are ignored during this function call.

    Declaration
    public NppiPoint GetResizeTiledSourceOffset(NppiRect oDstRectROI)
    Parameters
    Type Name Description
    NppiRect oDstRectROI

    Region of interest in the destination image (may overlap destination image size width and height)

    Returns
    Type Description
    NppiPoint

    NppiPoint object that will contain the new source image ROI offset to be used in the nppiResize call to generate that tile.

    | Improve this Doc View Source

    Inflate(NppiSize)

    Enlarges this Rectangle by the specified amount.

    Declaration
    public void Inflate(NppiSize val)
    Parameters
    Type Name Description
    NppiSize val
    | Improve this Doc View Source

    Inflate(Int32)

    Enlarges this Rectangle by the specified amount.

    Declaration
    public void Inflate(int val)
    Parameters
    Type Name Description
    System.Int32 val
    | Improve this Doc View Source

    Inflate(Int32, Int32)

    Enlarges this Rectangle by the specified amount.

    Declaration
    public void Inflate(int valX, int valY)
    Parameters
    Type Name Description
    System.Int32 valX
    System.Int32 valY
    | Improve this Doc View Source

    Intersect(NppiRect)

    Replaces this Rectangle with the intersection of itself and the specified Rectangle.

    Declaration
    public void Intersect(NppiRect rect)
    Parameters
    Type Name Description
    NppiRect rect
    | Improve this Doc View Source

    Intersect(NppiRect, NppiRect)

    Returns a third Rectangle structure that represents the intersection of two other Rectangle structures.If there is no intersection, an empty Rectangle is returned.

    Declaration
    public static NppiRect Intersect(NppiRect rectA, NppiRect rectB)
    Parameters
    Type Name Description
    NppiRect rectA
    NppiRect rectB
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    IntersectsWith(NppiRect)

    Determines if this rectangle intersects with rect.

    Declaration
    public bool IntersectsWith(NppiRect rect)
    Parameters
    Type Name Description
    NppiRect rect
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Multiply(NppiPoint, NppiRect)

    per element Add

    Declaration
    public static NppiRect Multiply(NppiPoint src, NppiRect value)
    Parameters
    Type Name Description
    NppiPoint src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Multiply(NppiRect, NppiPoint)

    per element Add

    Declaration
    public static NppiRect Multiply(NppiRect src, NppiPoint value)
    Parameters
    Type Name Description
    NppiRect src
    NppiPoint value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Multiply(NppiRect, NppiRect)

    per element Multiply

    Declaration
    public static NppiRect Multiply(NppiRect src, NppiRect value)
    Parameters
    Type Name Description
    NppiRect src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Multiply(NppiRect, NppiSize)

    per element Add

    Declaration
    public static NppiRect Multiply(NppiRect src, NppiSize value)
    Parameters
    Type Name Description
    NppiRect src
    NppiSize value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Multiply(NppiRect, Int32)

    per element Multiply

    Declaration
    public static NppiRect Multiply(NppiRect src, int value)
    Parameters
    Type Name Description
    NppiRect src
    System.Int32 value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Multiply(NppiSize, NppiRect)

    per element Add

    Declaration
    public static NppiRect Multiply(NppiSize src, NppiRect value)
    Parameters
    Type Name Description
    NppiSize src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Multiply(Int32, NppiRect)

    per element Multiply

    Declaration
    public static NppiRect Multiply(int src, NppiRect value)
    Parameters
    Type Name Description
    System.Int32 src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Subtract(NppiPoint, NppiRect)

    per element Add

    Declaration
    public static NppiRect Subtract(NppiPoint src, NppiRect value)
    Parameters
    Type Name Description
    NppiPoint src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Subtract(NppiRect, NppiPoint)

    per element Add

    Declaration
    public static NppiRect Subtract(NppiRect src, NppiPoint value)
    Parameters
    Type Name Description
    NppiRect src
    NppiPoint value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Subtract(NppiRect, NppiRect)

    per element Substract

    Declaration
    public static NppiRect Subtract(NppiRect src, NppiRect value)
    Parameters
    Type Name Description
    NppiRect src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Subtract(NppiRect, NppiSize)

    per element Add

    Declaration
    public static NppiRect Subtract(NppiRect src, NppiSize value)
    Parameters
    Type Name Description
    NppiRect src
    NppiSize value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Subtract(NppiRect, Int32)

    per element Substract

    Declaration
    public static NppiRect Subtract(NppiRect src, int value)
    Parameters
    Type Name Description
    NppiRect src
    System.Int32 value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Subtract(NppiSize, NppiRect)

    per element Add

    Declaration
    public static NppiRect Subtract(NppiSize src, NppiRect value)
    Parameters
    Type Name Description
    NppiSize src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Subtract(Int32, NppiRect)

    per element Substract

    Declaration
    public static NppiRect Subtract(int src, NppiRect value)
    Parameters
    Type Name Description
    System.Int32 src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()

    Operators

    | Improve this Doc View Source

    Addition(NppiPoint, NppiRect)

    per element

    Declaration
    public static NppiRect operator +(NppiPoint src, NppiRect value)
    Parameters
    Type Name Description
    NppiPoint src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Addition(NppiRect, NppiPoint)

    per element

    Declaration
    public static NppiRect operator +(NppiRect src, NppiPoint value)
    Parameters
    Type Name Description
    NppiRect src
    NppiPoint value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Addition(NppiRect, NppiRect)

    per element

    Declaration
    public static NppiRect operator +(NppiRect src, NppiRect value)
    Parameters
    Type Name Description
    NppiRect src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Addition(NppiRect, NppiSize)

    per element

    Declaration
    public static NppiRect operator +(NppiRect src, NppiSize value)
    Parameters
    Type Name Description
    NppiRect src
    NppiSize value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Addition(NppiRect, Int32)

    per element

    Declaration
    public static NppiRect operator +(NppiRect src, int value)
    Parameters
    Type Name Description
    NppiRect src
    System.Int32 value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Addition(NppiSize, NppiRect)

    per element

    Declaration
    public static NppiRect operator +(NppiSize src, NppiRect value)
    Parameters
    Type Name Description
    NppiSize src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Addition(Int32, NppiRect)

    per element

    Declaration
    public static NppiRect operator +(int src, NppiRect value)
    Parameters
    Type Name Description
    System.Int32 src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Division(NppiPoint, NppiRect)

    per element

    Declaration
    public static NppiRect operator /(NppiPoint src, NppiRect value)
    Parameters
    Type Name Description
    NppiPoint src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Division(NppiRect, NppiPoint)

    per element

    Declaration
    public static NppiRect operator /(NppiRect src, NppiPoint value)
    Parameters
    Type Name Description
    NppiRect src
    NppiPoint value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Division(NppiRect, NppiRect)

    per element

    Declaration
    public static NppiRect operator /(NppiRect src, NppiRect value)
    Parameters
    Type Name Description
    NppiRect src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Division(NppiRect, NppiSize)

    per element

    Declaration
    public static NppiRect operator /(NppiRect src, NppiSize value)
    Parameters
    Type Name Description
    NppiRect src
    NppiSize value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Division(NppiRect, Int32)

    per element

    Declaration
    public static NppiRect operator /(NppiRect src, int value)
    Parameters
    Type Name Description
    NppiRect src
    System.Int32 value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Division(NppiSize, NppiRect)

    per element

    Declaration
    public static NppiRect operator /(NppiSize src, NppiRect value)
    Parameters
    Type Name Description
    NppiSize src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Division(Int32, NppiRect)

    per element

    Declaration
    public static NppiRect operator /(int src, NppiRect value)
    Parameters
    Type Name Description
    System.Int32 src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Equality(NppiRect, NppiRect)

    per element

    Declaration
    public static bool operator ==(NppiRect src, NppiRect value)
    Parameters
    Type Name Description
    NppiRect src
    NppiRect value
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Inequality(NppiRect, NppiRect)

    per element

    Declaration
    public static bool operator !=(NppiRect src, NppiRect value)
    Parameters
    Type Name Description
    NppiRect src
    NppiRect value
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Multiply(NppiPoint, NppiRect)

    per element

    Declaration
    public static NppiRect operator *(NppiPoint src, NppiRect value)
    Parameters
    Type Name Description
    NppiPoint src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Multiply(NppiRect, NppiPoint)

    per element

    Declaration
    public static NppiRect operator *(NppiRect src, NppiPoint value)
    Parameters
    Type Name Description
    NppiRect src
    NppiPoint value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Multiply(NppiRect, NppiRect)

    per element

    Declaration
    public static NppiRect operator *(NppiRect src, NppiRect value)
    Parameters
    Type Name Description
    NppiRect src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Multiply(NppiRect, NppiSize)

    per element

    Declaration
    public static NppiRect operator *(NppiRect src, NppiSize value)
    Parameters
    Type Name Description
    NppiRect src
    NppiSize value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Multiply(NppiRect, Int32)

    per element

    Declaration
    public static NppiRect operator *(NppiRect src, int value)
    Parameters
    Type Name Description
    NppiRect src
    System.Int32 value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Multiply(NppiSize, NppiRect)

    per element

    Declaration
    public static NppiRect operator *(NppiSize src, NppiRect value)
    Parameters
    Type Name Description
    NppiSize src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Multiply(Int32, NppiRect)

    per element

    Declaration
    public static NppiRect operator *(int src, NppiRect value)
    Parameters
    Type Name Description
    System.Int32 src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Subtraction(NppiPoint, NppiRect)

    per element

    Declaration
    public static NppiRect operator -(NppiPoint src, NppiRect value)
    Parameters
    Type Name Description
    NppiPoint src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Subtraction(NppiRect, NppiPoint)

    per element

    Declaration
    public static NppiRect operator -(NppiRect src, NppiPoint value)
    Parameters
    Type Name Description
    NppiRect src
    NppiPoint value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Subtraction(NppiRect, NppiRect)

    per element

    Declaration
    public static NppiRect operator -(NppiRect src, NppiRect value)
    Parameters
    Type Name Description
    NppiRect src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Subtraction(NppiRect, NppiSize)

    per element

    Declaration
    public static NppiRect operator -(NppiRect src, NppiSize value)
    Parameters
    Type Name Description
    NppiRect src
    NppiSize value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Subtraction(NppiRect, Int32)

    per element

    Declaration
    public static NppiRect operator -(NppiRect src, int value)
    Parameters
    Type Name Description
    NppiRect src
    System.Int32 value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Subtraction(NppiSize, NppiRect)

    per element

    Declaration
    public static NppiRect operator -(NppiSize src, NppiRect value)
    Parameters
    Type Name Description
    NppiSize src
    NppiRect value
    Returns
    Type Description
    NppiRect
    | Improve this Doc View Source

    Subtraction(Int32, NppiRect)

    per element

    Declaration
    public static NppiRect operator -(int src, NppiRect value)
    Parameters
    Type Name Description
    System.Int32 src
    NppiRect value
    Returns
    Type Description
    NppiRect
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX