バーコード位置の取得
Namespace: fvalgcliAssembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)
Syntax
C# |
---|
public static int fnFIE_barcode_query_start_stop_pos( FHANDLE fBOObj, int iBarcodeNo, ref double pdStartX, ref double pdStartY, ref double pdEndX, ref double pdEndY ) |
Visual Basic |
---|
Public Shared Function fnFIE_barcode_query_start_stop_pos ( fBOObj As FHANDLE, iBarcodeNo As Integer, ByRef pdStartX As Double, ByRef pdStartY As Double, ByRef pdEndX As Double, ByRef pdEndY As Double ) As Integer |
Parameters
- fBOObj
- Type: fvalgcli..::..FHANDLE
バーコードオブジェクトのハンドル
- iBarcodeNo
- Type: System..::..Int32
認識したバーコード番号
- pdStartX
- Type: System..::..Double%
指定したバーコード番号に対応するバーコード位置 始点 X(画素)
- pdStartY
- Type: System..::..Double%
指定したバーコード番号に対応するバーコード位置 始点 Y(画素)
- pdEndX
- Type: System..::..Double%
指定したバーコード番号に対応するバーコード位置 終点 X(画素)
- pdEndY
- Type: System..::..Double%
指定したバーコード番号に対応するバーコード位置 終点 Y(画素)
Return Value
Type: Int32以下のエラーコードを返します。
エラーコード:
f_err | 内容 |
---|---|
F_ERR_NONE | 正常終了 |
F_ERR_INVALID_PARAM | 異常終了(パラメータが不正) |
F_ERR_INVALID_OBJECT | 不正なオブジェクトハンドルが渡されたため、異常終了。 |
F_ERR_NO_LICENCE | ライセンスエラー、または未初期化エラー |
Remarks
Examples
C# | Copy |
---|---|
// $Revision: 1.1 $ using System; using System.Collections.Generic; using System.Text; using fvalgcli; namespace TC { public partial class FIE { public void fnFIE_barcode_query_start_stop_pos(FHANDLE hBarcode, int iBarcodeNo) { double pdStartX = 0; double pdStartY = 0; double pdEndX = 0; double pdEndY = 0; try { // バーコード位置の取得. int status = api.fnFIE_barcode_query_start_stop_pos(hBarcode, iBarcodeNo, ref pdStartX, ref pdStartY, ref pdEndX, ref pdEndY); Assert.IsTrue(status == (int)f_err.F_ERR_NONE, "fnFIE_barcode_query_start_stop_pos: エラーが発生しました。({0})", (f_err)status); Console.WriteLine("fnFIE_barcode_query_start_stop_pos"); Console.WriteLine("start_x({0})={1}", iBarcodeNo, pdStartX); Console.WriteLine("start_y({0})={1}", iBarcodeNo, pdStartY); Console.WriteLine("end_x({0})={1}", iBarcodeNo, pdEndX); Console.WriteLine("end_y({0})={1}", iBarcodeNo, pdEndY); } finally { } } } } |
Visual Basic | Copy |
---|---|
' $Revision: 1.1 $ Imports System.Collections.Generic Imports System.Text Imports fvalgcli Public Partial Class FIE Public Sub fnFIE_barcode_query_start_stop_pos(hBarcode As FHANDLE, iBarcodeNo As Integer) Dim pdStartX As Double = 0 Dim pdStartY As Double = 0 Dim pdEndX As Double = 0 Dim pdEndY As Double = 0 Try ' バーコード位置の取得. Dim status As Integer = api.fnFIE_barcode_query_start_stop_pos(hBarcode, iBarcodeNo, pdStartX, pdStartY, pdEndX, pdEndY) Assert.IsTrue(status = CInt(f_err.F_ERR_NONE), "fnFIE_barcode_query_start_stop_pos: エラーが発生しました。({0})", CType(status, f_err)) Console.WriteLine("fnFIE_barcode_query_start_stop_pos") Console.WriteLine("start_x({0})={1}", iBarcodeNo, pdStartX) Console.WriteLine("start_y({0})={1}", iBarcodeNo, pdStartY) Console.WriteLine("end_x({0})={1}", iBarcodeNo, pdEndX) Console.WriteLine("end_y({0})={1}", iBarcodeNo, pdEndY) Finally End Try End Sub End Class |