【关于Rect类中的inflaterect和deflaterect函数】
来源:互联网 发布:手机扫描软件免费 编辑:程序博客网 时间:2024/06/15 09:26
简单的说就是左(left) 上(top) 右(right) 下(bottom)
下面列出其全部重载函数
CRect::InflateRect
void InflateRect( int x, int y );
void InflateRect( SIZE size );
void InflateRect( LPCRECT lpRect );
void InflateRect( int l, int t, int r, int b );
参数:
x 指定扩大CRect左和右边的单位数。
y 指定扩大CRect上、下边的单位数。
size 一个指定扩大CRect的单位数的SIZE或CSize。cx值指定扩大左、右边的单位数,cy指定扩大上、下边的单位数。
lpRect 指向一个RECT结构或CRect,指定扩大每一边的单位数。
l 指定扩大CRect左边的单位数。
t 指定扩大CRect上边的单位数。
r 指定扩大CRect右边的单位数。
b 指定扩大CRect下边的单位数。
CRect::DeflateRect
void DeflateRect( int x, int y );
void DeflateRect( SIZE size );
void DeflateRect( LPCRECT lpRect );
void DeflateRect( int l, int t, int r, int b );
参数: x 指定缩小CRect的左和右边的单位数。
y 指定缩小CRect的上、下边的单位数。
size 一个指定缩小CRect的单位数的SIZE或CSize。cx值指定缩小左、右边的单位数,cy指定缩小上、下边的单位数。
lpRect 指向一个RECT结构或CRect,指定缩小每一边的单位数。
l 指定缩小CRect左边的单位数。
t 指定缩小CRect上边的单位数。
r 指定缩小CRect右边的单位数。
b 指定缩小CRect下边的单位数。
在自绘滑块类中使用很好。自定义轨道的大小
- 【关于Rect类中的inflaterect和deflaterect函数】
- 在VC中的Rect类有两个函数,inflaterect和deflaterect分别表示什么意思?
- 在VC中的Rect类有两个函数,inflaterect和deflaterect分别表示什么意思?
- 关于inflaterect和deflaterect
- 关于inflaterect和deflaterect .
- 关于inflaterect和deflaterect
- inflaterect和deflaterect
- 关于Opencv中Rect和Rectangle函数
- 关于Opencv中Rect和Rectangle函数
- Android中的Rect类
- CRect::DeflateRect() 和OffsetRect()
- InflateRect
- InflateRect
- InflateRect
- DeflateRect
- DeflateRect
- DeflateRect
- GDI+中的BUG:Rect和RectF中的IntersectsWith()函数实现错误
- Linux/Unix 奇怪问题集锦
- Android中内容观察者的使用---- ContentObserver类详解 (转)
- Python 对字符串半金字塔图形输出
- JQuery选择器
- Eclipse一直building workspace问题解决
- 【关于Rect类中的inflaterect和deflaterect函数】
- 自己总结了一份java访问权限表
- LitJson 简单使用心得
- bash echo去回车和翻译转义字符
- C++著名库
- 线程安全
- 单元测试框架NUnit 之 assertions 断言
- 一点札记
- android httpclient封装,可以参考一下