对比颜色 - CmpColorHex
函数简介
对比指定颜色是否在指定的颜色范围区间,包含下限(>= color1) 包含上限(<= color2)支持AARRGGBB、RRGGBB颜色格式
接口名称
CmpColorHex
DLL调用
int CmpColorHex(long ola,string color, string color1,string color2)
参数定义:
ola
(长整型数): OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。color
(字符串): 需要对比的颜色,颜色格式 RRGGBB或者AARRGGBBcolor1
(字符串): 颜色起始范围,颜色格式 RRGGBB或者AARRGGBBcolor2
(字符串): 颜色结束范围,颜色格式 RRGGBB或者AARRGGBB
示例:
返回值
整型数
- 0: 失败
- 1: 成功