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.
このメソッドは、画像内の指定したRectangle領域におけるテキスト色と背景色を検出します。このRectangle領域は、ImageDocument の傾き補正済みの白黒ページを基準とする座標で指定する必要があります。
HRESULT GetTextBackgroundColor(
int Left,
int Top,
int Right,
int Bottom,
int Flags,
int* TextColor,
int* BackgroundColor
);
void GetTextBackgroundColor(
int Left,
int Top,
int Right,
int Bottom,
int Flags,
out int TextColor,
out int BackgroundColor
);
Sub GetTextBackgroundColor( _
Left As Integer, _
Top As Integer, _
Right As Integer, _
Bottom As Integer, _
Flags As Integer, _
ByRef TextColor As Integer, _
ByRef BackgroundColor As Integer _
)
Left
[in] このパラメーターには、Rectangleの左端の座標を指定します。
Top
[in] このパラメーターには、Rectangleの上端の座標を指定します。
Right
[in] このパラメーターには、Rectangleの右端の座標を指定します。
Bottom
[in] このパラメーターには、Rectangleの下端の座標を指定します。
Flags
[in] このパラメーターには、0 または DCR_Invert 定数 (DetectColorRegionFlags モジュール) を指定できます。DCR_Invert を渡した場合、そのRectangleは反転しているもの (黒地に白文字) と見なされます。
TextColor
[out] このパラメーターには、Rectangle内のテキスト色の値が返されます。
BackgroundColor
[out] このパラメーターには、Rectangle内の背景色の値が返されます。
このメソッド固有の戻り値はありません。返される値については、ABBYY FineReader Engine 関数の標準的な戻り値を参照してください。
テキスト色と背景色は、ImageDocument の傾き補正済みの白黒ページの情報を使用して検出されます。ただし、返される色は、ImageDocument のカラーページ上での色のままです。指定したRectangle内にある傾き補正済み白黒画像プレーンのピクセルは、黒であれば (反転されていないRectangleの場合) 、または白であれば (反転されたRectangleの場合) 、テキストの一部と見なされます。このメソッドがテキストや背景の色を検出できない場合は、未定義の色値 (0xFFFFFFFF) を返します。
ImageDocument