Skip to content

set_fixSetFixSetFixset_fixT_set_fix🔗

説明🔗

set_fixSetFixSetFixset_fixT_set_fix — ルックアップテーブル(LUT)を固定するかどうかの設定をする。

警告🔗

set_fixSetFixは現在では使用されず、下位互換性のためだけに提供されます。

書式🔗

set_fix( window WindowHandle, string Mode )void SetFix( const HTuple& WindowHandle, const HTuple& Mode )static void HOperatorSet.SetFix( HTuple windowHandle, HTuple mode )def set_fix( window_handle: HHandle, mode: str ) -> None

Herror T_set_fix( const Htuple WindowHandle, const Htuple Mode )

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

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

void HWindow::SetFix( const wchar_t* Mode ) const (Windows only)

void HWindow.SetFix( string mode )

説明🔗

Modemodemode = 'true'"true" に対する動作: set_fixSetFix は、 オペレーター set_graySetGray, set_colorSetColor, set_hsiSetHsi または set_rgbSetRgb のうちの1つによって最後に定義されたピクセルを固定します。 (注意:ピクセルは現在のルックアップテーブルのインデックスです。) 新しいカラーを固定されたピクセルに割り当てるために、set_colorSetColor, set_rgbSetRgb, set_hsiSetHsi または set_graySetGray を使ってカラー またはグレイ値を設定してください。これは、いかなるカラー (set_colorSetColor) も、いかなるグレイ値 (set_graySetGray)も、 いかなるカラーの組合せ (set_rgbSetRgb, set_hsiSetHsi) も、ルックアップテーブルの任意の位置に 定義することを可能にします

Modemodemode を’false’ に設定した場合、その固定をリセットします。 ルックアップテーブルを修正する、または生成するために、 set_pixelSetPixel, set_fix(::WindowHandle,'true':), set_rgbSetRgb, set_fix(::WindowHandle,'false':) を順に処理します。

注意🔗

副作用として、set_fixSetFix は「非HALCONウインドウ’」のカラーを変えて しまうことがあります。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

WindowHandlewindowHandlewindow_handle (input_control) window → (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

ウインドウハンドル

Modemodemode (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

固定モード

初期値: 'true'"true"
値のリスト: 'false', 'true'"false", "true"

結果🔗

ウインドウが有効であり、ハードウエアがルックアップテーブルをサポートして おり、すべてのパラメーターが正しいならば、set_fixSetFix は、値 2 (H_MSG_TRUE) を 返します。そうでなければ、例外処理が発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

get_fixGetFix

後処理の候補

set_pixelSetPixel, set_rgbSetRgb

関連項目

get_fixGetFix, set_pixelSetPixel, set_rgbSetRgb, set_colorSetColor, set_hsiSetHsi, set_graySetGray

モジュール🔗

Foundation