找回密码
 立即注册
收起左侧

计算机图形课程要求画图形,书中有函数SetPixel

2
回复
6039
查看
[复制链接]
累计签到:35 天
连续签到:1 天
来源: 2016-6-2 21:40:43 显示全部楼层 |阅读模式
1Qter豆
这个函数的原形是SetPixel(int,int,color);可以在指定坐标处放置象素,在Qt中可有类似函数

回复

使用道具 举报

累计签到:955 天
连续签到:1 天
2016-6-3 08:11:52 显示全部楼层
有,自己查一下qt的文档就知道了
回复

使用道具 举报

累计签到:595 天
连续签到:1 天
2016-6-3 08:33:55 显示全部楼层
void QPainter::drawPoint ( const QPointF & position )
Draws a single point at the given position using the current pen's color.

See also Coordinate System.

void QPainter::drawPoint ( const QPoint & position )
This is an overloaded function.

Draws a single point at the given position using the current pen's color.

void QPainter::drawPoint ( int x, int y )
This is an overloaded function.

Draws a single point at position (x, y).
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

公告
可以关注我们的微信公众号yafeilinux_friends获取最新动态,或者加入QQ会员群进行交流:190741849、186601429(已满) 我知道了