ImageGear21.Core Assembly > ImageGear.Core Namespace > ImGearROIMask Class > ImGearROIMask Constructor : ImGearROIMask Constructor(ImGearPage,ImGearPixel,Boolean) |
'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 )
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.
// Set ROI to area that is not filled with Pixel Padding Value ImGearPixel ppv = new ImGearPixel(1, 16); ppv[0] = 1024; ImGearRasterPage rasterPage = (ImGearRasterPage)page; rasterPage.ROI = new ImGearROIMask(page, ppv, true);
' Set ROI to area that is not filled with Pixel Padding Value Dim ppv As ImGearPixel = New ImGearPixel(1, 16) ppv(0) = 1024 Dim rasterPage As ImGearRasterPage = igPage rasterPage.ROI = New ImGearROIMask(igPage, ppv, True)