> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IDrawContext

> ABBYY FlexiCapture の IDrawContext スクリプトオブジェクトを使って、ステーションウィンドウに描画できます。線、矩形、ピクセルを RGB カラーと透明度を指定して描画できます。

<div id="what-it-does">
  ## 機能
</div>

描画コンテキストを表します。スクリプトを使用して、基本的な幾何学図形を描画できます。色は 4 バイトの並び 0x00BBGGRR として指定します。ここで、"BB" バイトは青、"GG" バイトは緑、"RR" バイトは緑を表します。

<div id="methods">
  ## メソッド
</div>

| **定義**                                                                                                                                                     | **説明**                                             |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| FillAlphaRect( rect : [IShellRect](/ja/flexi-capture/appendix/scripts-shell/i-shell-rect), rgbColor : int, alpha : int )                                   | 指定した透明度で塗りつぶされたRectangleを描画します。                    |
| FillRect( rect : [IShellRect](/ja/flexi-capture/appendix/scripts-shell/i-shell-rect), rgbColor : int )                                                     | 指定した色で塗りつぶされたRectangleを描画します。                      |
| GetPixel( x : int, y : int ) : int                                                                                                                         | 指定した座標のピクセルの色 (RGB) を取得します。                        |
| Line( start : [IPoint](/ja/flexi-capture/appendix/scripts-shell/ipoint), end : [IPoint](/ja/flexi-capture/appendix/scripts-shell/ipoint), rgbColor : int ) | "start" と "end" の点を結ぶ、指定した色の線を描画します。               |
| Rect( rect : [IShellRect](/ja/flexi-capture/appendix/scripts-shell/i-shell-rect), rgbColor : int )                                                         | 指定した色の枠線でRectangleを描画します。                          |
| SetPixel( x : int, y : int, rgbColor : int ) : int                                                                                                         | 指定した座標のピクセルの色 (RGB) を設定します。変更前のピクセルの色 (RGB) を返します。 |

<div id="properties">
  ## プロパティ
</div>

| 名前   | 型   | アクセス   | 説明                  |
| ---- | --- | ------ | ------------------- |
| ハンドル | int | 読み取り専用 | コンテキスト (HDC) へのハンドル |
