xyrangeの取得

Namespace: fvalgcli
Assembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)

Syntax

C#
public static int fnFIE_measure_get_xyrange(
	FHANDLE hresult,
	uint blobno,
	ref int xmin,
	ref int ymin,
	ref int xmax,
	ref int ymax
)
Visual Basic
Public Shared Function fnFIE_measure_get_xyrange ( 
	hresult As FHANDLE,
	blobno As UInteger,
	ByRef xmin As Integer,
	ByRef ymin As Integer,
	ByRef xmax As Integer,
	ByRef ymax As Integer
) As Integer

Parameters

hresult
Type: fvalgcli..::..FHANDLE
ブローブ解析結果ハンドル
blobno
Type: System..::..UInt32
対象ブローブのブローブ番号
xmin
Type: System..::..Int32%
x座標最小値
ymin
Type: System..::..Int32%
y座標最小値
xmax
Type: System..::..Int32%
x座標最大値
ymax
Type: System..::..Int32%
y座標最大値

Return Value

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

エラーコード:
f_err内容
F_ERR_NONE正常終了
F_ERR_INVALID_OBJECThresult に指定されたオブジェクトハンドルが不正
F_ERR_INVALID_PARAMblobno に指定されたブローブ番号が不正, パラメータに IntPtr.Zero が渡された
F_ERR_NO_LICENCEライセンスエラー、または未初期化エラー

Remarks

Examples

C# Copy imageCopy
//    $Revision: 1.1 $

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

namespace TC
{
    public partial class FIE
    {
        public void fnFIE_measure_get_xyrange(FHANDLE result, uint blobno)
        {
            try
            {
                int xmin = 0;
                int ymin = 0;
                int xmax = 0;
                int ymax = 0;
                int status = api.fnFIE_measure_get_xyrange(result, blobno, ref xmin, ref ymin, ref xmax, ref ymax);
                Assert.IsTrue(status == (int)f_err.F_ERR_NONE, "fnFIE_measure_get_xyrange: エラーが発生しました。({0})", (f_err)status);
                Console.WriteLine("fnFIE_measure_get_xyrange");
                // 出力.
                Console.WriteLine("xmin={0}, ymin={1}, xmax={2}, ymax={3}", xmin, ymin, xmax, ymax);
            }
            finally
            {
            }
        }
    }
}


Visual Basic Copy imageCopy
'    $Revision: 1.1 $

Imports System.Collections.Generic
Imports System.Text
Imports fvalgcli

Public Partial Class FIE
    Public Sub fnFIE_measure_get_xyrange(result As FHANDLE, blobno As UInteger)
        Try
            Dim xmin As Integer = 0
            Dim ymin As Integer = 0
            Dim xmax As Integer = 0
            Dim ymax As Integer = 0
            Dim status As Integer = api.fnFIE_measure_get_xyrange(result, blobno, xmin, ymin, xmax, ymax)
            Assert.IsTrue(status = CInt(f_err.F_ERR_NONE), "fnFIE_measure_get_xyrange: エラーが発生しました。({0})", CType(status, f_err))
            Console.WriteLine("fnFIE_measure_get_xyrange")
            ' 出力.
            Console.WriteLine("xmin={0}, ymin={1}, xmax={2}, ymax={3}", xmin, ymin, xmax, ymax)
        Finally
        End Try
    End Sub
End Class

See Also