跳到主要内容

图像绘制

在屏幕上指定位置绘制图形

drawShape(sHWnd, shape)

描述

在窗口上进行图像绘制

参数

sHWnd

string

:窗口句柄

shape

object

:图形对象

shape.type

string

:图形类型,"rectangle | polygon | line | point"

shape.points

[{x, y}]

:点集

shape.color

number

:点的颜色

返回值

code

number

:操作状态(成功:0;失败:1)

desc

string

:状态描述(失败原因)

data

none

:无(成功:空;失败:空)