通知座標オフセットの設定

Namespace: fvalgcli
Assembly: fvalgcli_fga (in fvalgcli_fga.dll) Version: 3.1.0.0 (3.1.0.3)

Syntax

C#
public static int fnFGA_gs2_pattern_set_offset(
	FHANDLE hpattern,
	int x,
	int y
)
Visual Basic
Public Shared Function fnFGA_gs2_pattern_set_offset ( 
	hpattern As FHANDLE,
	x As Integer,
	y As Integer
) As Integer

Parameters

hpattern
Type: fvalgcli..::..FHANDLE
グレイサーチパターンオブジェクト
x
Type: System..::..Int32
水平方向通知座標オフセット(100倍値)
y
Type: System..::..Int32
垂直方向通知座標オフセット(100倍値)

Return Value

Type: Int32
以下のエラーコードを返します。

エラーコード:
f_err内容
F_ERR_NONE正常終了
F_ERR_INVALID_OBJECTパタン以外のオブジェクトが渡された
F_ERR_NO_LICENCEライセンスエラー、または未初期化エラー

Remarks

Examples

C# Copy imageCopy
//    $Revision: 1.1 $

using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using fvalgcli;

namespace TC
{
    public partial class FIE
    {
        public void fnFGA_gs2_pattern_set_offset(FHANDLE hPattern)
        {
            Console.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().Name);

            try
            {
                // 通知座標オフセットの設定.
                int x = 20;
                int y = 20;
                int status = fga.fnFGA_gs2_pattern_set_offset(hPattern, x, y);
                if (status != (int)f_err.F_ERR_NONE)
                    throw new FvException(status, "エラーが発生しました。");
                Console.WriteLine("x={0},y={1}", x, y);
            }
            finally
            {
            }
        }
    }
}

Exceptions

ExceptionCondition
System.IO..::..FileNotFoundException 実行環境に NVIDIA CUDA Runtime が存在しない場合、FGA ライブラリのロードが失敗し、この例外が発行されます。
必要な環境については FGA ライブラリ説明書 をご参照ください。
例外メッセージの例 (32bit 日本語 O/S の場合):
DLL 'fgamt.x86.3.0.0.dll' を読み込めません: 指定されたモジュールが見つかりません。 (HRESULT からの例外: 0x8007007E)

See Also