ConstructROIOptions2
Describes how a function presents the ROI constructor window.
Elements
Name | Type | Description |
---|---|---|
windowNumber | int | The window number of the image window. The function displays the image in the specified window and temporarily sets the window to modal mode. When the user clicks OK or Cancel, the attributes of the window reset to their initial values. Set this parameter to IMAQ_MODAL_DIALOG to display a modal dialog window centered in the screen. |
windowTitle | const char* | Specifies the message string that the function displays in the title bar of the window. Use this element to provide the user with instructions describing the object to select. |
type | PaletteType | The palette type to use. |
palette | RGBValue* | If type is IMAQ_PALETTE_USER, this array is the palette of colors to use with the window. If type is not IMAQ_PALETTE_USER, the function ignores this element, and you may set it to NULL. The maximum number of colors in a palette is 256. palette[n] maps to pixel value n. If there are fewer than 256 elements in palette, the function maps all pixel values past the last element in palette to the associated grayscale value. |
numColors | int | If type is IMAQ_PALETTE_USER, this element is the number of colors in the palette array. If type is not IMAQ_PALETTE_USER, the function ignores this element. |
maxContours | unsigned int | The maximum number of contours the user will be able to select. |