画像アドレス取得
Namespace: fvalgcliAssembly: fvalgcli_fga (in fvalgcli_fga.dll) Version: 3.1.0.0 (3.1.0.3)
Syntax
C# |
---|
public static IntPtr fnFGA_img_get_ch_adrs( FHANDLE himg, int channel ) |
Visual Basic |
---|
Public Shared Function fnFGA_img_get_ch_adrs ( himg As FHANDLE, channel As Integer ) As IntPtr |
Parameters
- himg
- Type: fvalgcli..::..FHANDLE
アドレスを取得する画像のハンドル
- channel
- Type: System..::..Int32
アドレスを取得するチャネル番号
Return Value
Type: IntPtr正常終了した場合は、左上画素のアドレスを返します。 異常終了した場合は、NULLを返します。(パラメータエラー、画像形式エラー、ライセンスエラー、または未初期化エラー)
Examples
C# | Copy |
---|---|
// $Revision: 1.2 $ using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using fvalgcli; namespace TC { public partial class FIE { /// <summary> /// 画像アドレス取得. /// </summary> [FvPluginExecute] public void fnFGA_img_get_ch_adrs() { // fnFGA_img_child_alloc 参照. } } } |
Exceptions
Exception | Condition |
---|---|
System.IO..::..FileNotFoundException |
実行環境に NVIDIA CUDA Runtime が存在しない場合、FGA ライブラリのロードが失敗し、この例外が発行されます。 必要な環境については FGA ライブラリ説明書 をご参照ください。 例外メッセージの例 (32bit 日本語 O/S の場合): DLL 'fgamt.x86.3.0.0.dll' を読み込めません: 指定されたモジュールが見つかりません。 (HRESULT からの例外: 0x8007007E) |