设置字体平滑 - SetFontSmooth
函数简介
设置字体平滑。
接口名称
SetFontSmooth
DLL调用
int SetFontSmooth(long instance, int enable);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| enable | 整数型 | 是否启用 |
示例
C++
long instance = CreateCOLAPlugInterFace();
// 关闭字体平滑,提高文字识别精度
int ret = SetFontSmooth(instance, 0);
// 开启字体平滑
ret = SetFontSmooth(instance, 1);
Python
# 待补充
返回值
整数型:1 成功,0 失败。
