UI — UI显示相关的操作¶
使用示例¶
| 1 2 3 | # coding=utf-8
# This is a sample Python script.
from minicv import UI
 | 
常量¶
操作函数¶
- 
open(UIFrameworkType_t)¶
- 打开UI模块 
- 
close()¶
- 关闭UI 模块 
- 
getDisplayWidth()¶
- 获取显示设备的分辨率宽 
- 
getDisplayHeight()¶
- 获取显示设备的分辨率高 
- 
getDisplayBacklight()¶
- 获取设备的背光值 
- 
setDisplayBacklight()¶
- 设置设备的背光值 
- 
getDisplayType(value)¶
- 获取显示设备的类型 
- 
getDisplayFreq()¶
- 获取显示的频率 
- 
setDisplayFreq(value)¶
- 设置显示设备的频率 
- 
drawPoint(x, y, color)¶
- 画点函数 
- 
drawLine(startx, starty, endx, endy, color)¶
- 划线函数 
- 
drawRectangle(left, top, right, bottom, color)¶
- 画矩形框函数 
- 
drawCircle(x, y, radius, color)¶
- 画圆函数 
- 
drawText(text, size, color, left, top, right, bottom)¶
- 写字操作 
- 
drawPixels(pixels, x, y, width, height)¶
- 画像素到ui 上 
- 
drawImage(path, x, y, width, heigh)¶
- 将图片画到ui 上 
- 
updateDisplay()¶
- 更新显示内容