Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
想得到色块中心坐标和画面中心坐标的差值,但不知道怎么得到画面中心坐标,求赐教
img.width()/2
img.height()/2
好,我试试,多谢了
img.draw_cross(int(img.width()/2),int(img.height()/2))
转换为整型之后就可以了