语法
C++
C#
Visual Basic .NET
参数
返回值
备注
ImageDocument 纠偏后的黑白页面中的信息检测出来的。但返回的颜色与其在 ImageDocument 彩色页面上的颜色保持一致。如果纠偏后的黑白图像平面中,位于指定矩形内的某个像素为黑色 (对于未反相的矩形) 或白色 (对于已反相的矩形) ,则该像素会被视为文本的一部分。如果此方法无法检测文本和/或背景的颜色,则会返回未定义的颜色值 (0xFFFFFFFF) 。
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 _
)
ImageDocument 纠偏后的黑白页面中的信息检测出来的。但返回的颜色与其在 ImageDocument 彩色页面上的颜色保持一致。如果纠偏后的黑白图像平面中,位于指定矩形内的某个像素为黑色 (对于未反相的矩形) 或白色 (对于已反相的矩形) ,则该像素会被视为文本的一部分。如果此方法无法检测文本和/或背景的颜色,则会返回未定义的颜色值 (0xFFFFFFFF) 。
此页面对您有帮助吗?