1. 函数原型解析
函数声明:
DFBResult FillRectangle (
IDirectFBSurface * thiz,
int x,
int y,
int w,
int h
) ;
IDirectFBSurface * thiz,
int x,
int y,
int w,
int h
) ;
在平面上画了一个黑色(DirectFB系统默认颜色)的指定大小的矩形,左上定点坐标为(x,y),宽度为w,高度为h。
参数介绍:
thiz:
自身指针变量,类似this指针的变量;
属于DirectFB的招牌写法。
(x, y):表示DFBRctangle的左上角的坐标位置
;
宽度为w,高度为h。
2. 实例
primary_surface->FillRectangle(primary_surface, 0, 0,
screen_width, screen_height);
参阅
http://blog.csdn.net/younger_china/article/details/17919107
3. 备注
FillRectangle : 填充矩形
DrawRectangle : 画矩形
DrawLine : 画线
FillTriangle : 填充三角形
Blit : 位块传送(内存拷贝/移动?)
Blit2 : 位块传送2(支持源坐标)
StretchBlit : 位块传送并拉伸
TextureTriangles : ?
转载于:https://www.cnblogs.com/youngerchina/p/5624506.html
最后
以上就是执着冬瓜最近收集整理的关于DirectFB 之 FillRectangle 绘制矩形1. 函数原型解析2. 实例 3. 备注 的全部内容,更多相关DirectFB内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复