ImageGear v26.3 - Updated
ImageGear.Core Assembly / ImageGear.Core Namespace / ImGearROIMask Class / ImGearROIMask Constructor / ImGearROIMask Constructor(Int32,Int32,IImGearShape)
X coordinate of the left top corner of the region.
Y coordinate of the left top corner of the region.
Shape from which the mask will be generated.




In This Topic
    ImGearROIMask Constructor(Int32,Int32,IImGearShape)
    In This Topic
    Initializes a new instance of the ImGearROIMask class from an IImGearShape object.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal left As Integer, _
       ByVal top As Integer, _
       ByVal shape As IImGearShape _
    )
    'Usage
     
    Dim left As Integer
    Dim top As Integer
    Dim shape As IImGearShape
     
    Dim instance As New ImGearROIMask(left, top, shape)
    public ImGearROIMask( 
       int left,
       int top,
       IImGearShape shape
    )
    public: ImGearROIMask( 
       int left,
       int top,
       IImGearShape* shape
    )
    public:
    ImGearROIMask( 
       int left,
       int top,
       IImGearShape^ shape
    )

    Parameters

    left
    X coordinate of the left top corner of the region.
    top
    Y coordinate of the left top corner of the region.
    shape
    Shape from which the mask will be generated.
    Remarks
    This constructor generates mask image from the shape with minimal possible dimensions. The shape is rasterized (drawn) onto the mask image at the time of the mask creation. Left member is set to the sum of left parameter and x coordinate of left-most point of the Shape. The Top member is set to the sum of the top parameter and the y coordinate of the topmost point of the Shape.
    See Also