ImageGear v26.3 - Updated
ImageGear.Core Assembly / ImageGear.Core Namespace / ImGearROIMask Class / ImGearROIMask Constructor / ImGearROIMask Constructor(ImGearPage,ImGearPixel,Boolean)
The page used to construct the ROI mask. Binary (1-bit) pages are not supported.
Mask color.
Set to true to build mask according to area not filled with MaskColor.




In This Topic
    ImGearROIMask Constructor(ImGearPage,ImGearPixel,Boolean)
    In This Topic
    Initializes a new instance of the ImGearROIMask class, corresponding to an area in the specified page that is filled with the specified color.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal page As ImGearPage, _
       ByVal maskColor As ImGearPixel, _
       ByVal invertSelection As Boolean _
    )
    'Usage
     
    Dim page As ImGearPage
    Dim maskColor As ImGearPixel
    Dim invertSelection As Boolean
     
    Dim instance As New ImGearROIMask(page, maskColor, invertSelection)
    public ImGearROIMask( 
       ImGearPage page,
       ImGearPixel maskColor,
       bool invertSelection
    )
    public: ImGearROIMask( 
       ImGearPage* page,
       ImGearPixel* maskColor,
       bool invertSelection
    )
    public:
    ImGearROIMask( 
       ImGearPage^ page,
       ImGearPixel^ maskColor,
       bool invertSelection
    )

    Parameters

    page
    The page used to construct the ROI mask. Binary (1-bit) pages are not supported.
    maskColor
    Mask color.
    invertSelection
    Set to true to build mask according to area not filled with MaskColor.
    Remarks
    Creates an instance of ImGearROIMask object corresponding to area in the page that is filled with maskColor. If invertSelection is true, the mask is created for the area that is not filled with maskColor.

    The ImGearPixel passed as maskColor should correspond to page's number of channels and bit depth.

    This constructor can be used to create an ROI Mask based on the DICOM Pixel Padding Value.

    Example
    See Also