画素走査オブジェクトの取得 [範囲指定]
Namespace: FVIL.DataAssembly: FVILbasic (in FVILbasic.dll) Version: 3.1.0.0 (3.1.0.17)
Syntax
C# |
---|
public virtual CFviPixelScanner GetPixelScanner( int channel, int x, int y, int width, int height ) |
Visual Basic |
---|
Public Overridable Function GetPixelScanner ( channel As Integer, x As Integer, y As Integer, width As Integer, height As Integer ) As CFviPixelScanner |
Parameters
- channel
- Type: System..::..Int32
チャネル指標 [0~(Channel-1)]
- x
- Type: System..::..Int32
範囲の開始位置 X 座標 [0~]
- y
- Type: System..::..Int32
範囲の開始位置 Y 座標 [0~]
- width
- Type: System..::..Int32
範囲の幅 [0:全面, 1~:指定範囲]
- height
- Type: System..::..Int32
範囲の高さ [0:全面, 1~:指定範囲]
Return Value
Type: CFviPixelScanner指定された範囲にアタッチした CFviPixelScanner を返します。
Remarks
指定された範囲にアタッチした CFviPixelScanner を生成します。
引数の x, y を CFviPixelScanner の Offset に設定します。
戻り値の CFviPixelScanner の左上(0, 0)が、ここで指定された x, y と対応します。
取得に失敗した場合は例外を発行します。 例外の原因と発生位置を特定するには、発行された例外クラスの ErrorCode メンバと Function メンバを参照してください。
エラーコード:
値 | ErrorCode メンバ | 内容 |
---|---|---|
23 | FVIL.ErrorCode.NOT_ALLOCATED | 画像メモリが確保されていません。 |
18 | FVIL.ErrorCode.INVALID_CHANNEL | 引数に指定されたチャネル指標が不正です。 |
11 | FVIL.ErrorCode.INVALID_PARAMETER | 引数に指定された範囲が不正です。 |