ClassesClassesClassesClasses | | | | Operators

set_fixset_fixSetFixset_fixSetFixSetFix (Operator)

Name

set_fixset_fixSetFixset_fixSetFixSetFix — Set fixing of “look-up-table” (lut)

Signature

set_fix( : : WindowHandle, Mode : )

Herror set_fix(const Hlong WindowHandle, const char* Mode)

Herror T_set_fix(const Htuple WindowHandle, const Htuple Mode)

Herror set_fix(const HTuple& WindowHandle, const HTuple& Mode)

void HWindow::SetFix(const HTuple& Mode) const

void SetFix(const HTuple& WindowHandle, const HTuple& Mode)

void HWindow::SetFix(const HString& Mode) const

void HWindow::SetFix(const char* Mode) const

void HOperatorSetX.SetFix(
[in] VARIANT WindowHandle, [in] VARIANT Mode)

void HWindowX.SetFix([in] BSTR Mode)

static void HOperatorSet.SetFix(HTuple windowHandle, HTuple mode)

void HWindow.SetFix(string mode)

Description

Behaviour for ModeModeModeModeModemode = 'true'"true""true""true""true""true": set_fixset_fixSetFixset_fixSetFixSetFix fixes that pixel lastly ascertained by one of the operators set_grayset_graySetGrayset_graySetGraySetGray, set_colorset_colorSetColorset_colorSetColorSetColor, set_hsiset_hsiSetHsiset_hsiSetHsiSetHsi or set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb (Remark: Here a pixel is the index within the current look-up-table). To assign a new color to a fixed pixel set a color or gray value by using set_colorset_colorSetColorset_colorSetColorSetColor, set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb, set_hsiset_hsiSetHsiset_hsiSetHsiSetHsi or set_grayset_graySetGrayset_graySetGraySetGray. This makes it possible to define any color (set_colorset_colorSetColorset_colorSetColorSetColor), any gray value (set_grayset_graySetGrayset_graySetGraySetGray) and any color combination (set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb, set_hsiset_hsiSetHsiset_hsiSetHsiSetHsi) at any position of the look-up-table.

ModeModeModeModeModemode set to 'false' reset the fixing. To modify or create a look-up-table process set_pixelset_pixelSetPixelset_pixelSetPixelSetPixel, set_fix(::WindowHandle,'true':)set_fix(WindowHandle,"true")SetFix(WindowHandle,"true")set_fix(WindowHandle,"true")SetFix(WindowHandle,"true")SetFix(WindowHandle,"true"), set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb and set_fix(::WindowHandle,'false':)set_fix(WindowHandle,"false")SetFix(WindowHandle,"false")set_fix(WindowHandle,"false")SetFix(WindowHandle,"false")SetFix(WindowHandle,"false") one after another.

Attention

As a side effect set_fixset_fixSetFixset_fixSetFixSetFix can change colors of “non-HALCON windows”.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Window identifier.

ModeModeModeModeModemode (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Mode of fixing.

Default value: 'true' "true" "true" "true" "true" "true"

List of values: 'false'"false""false""false""false""false", 'true'"true""true""true""true""true"

Result

set_fixset_fixSetFixset_fixSetFixSetFix returns 2 (H_MSG_TRUE) if the window is valid, the hardware supports a look-up-table and all parameters are correct. Otherwise an exception is raised.

Possible Predecessors

get_fixget_fixGetFixget_fixGetFixGetFix

Possible Successors

set_pixelset_pixelSetPixelset_pixelSetPixelSetPixel, set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb

See also

get_fixget_fixGetFixget_fixGetFixGetFix, set_pixelset_pixelSetPixelset_pixelSetPixelSetPixel, set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb, set_colorset_colorSetColorset_colorSetColorSetColor, set_hsiset_hsiSetHsiset_hsiSetHsiSetHsi, set_grayset_graySetGrayset_graySetGraySetGray

Module

Foundation


ClassesClassesClassesClasses | | | | Operators