| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 516 人关注过本帖
标题:[求助]解释下这下语句
只看楼主 加入收藏
hjx_dke
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-9-17
收藏
 问题点数:0 回复次数:1 
[求助]解释下这下语句
brushcoy(bounds(rect.left+2,rect.top+2,pic.width,pic.height),pic,bounds(0,0,pic.width,pic.heitht),clred)
注,pic:=tbitmap.create
搜索更多相关主题的帖子: 语句 解释 
2006-09-18 00:14
ysp_1984
Rank: 5Rank: 5
等 级:贵宾
威 望:15
帖 子:371
专家分:0
注 册:2006-1-5
收藏
得分:0 

Copies a portion of a bitmap onto a rectangle on the canvas, replacing one of the colors of the bitmap with the brush of the canvas.

Delphi syntax:

procedure BrushCopy(const Dest: TRect; Bitmap: TBitmap; const Source: TRect; Color: TColor);

C++ syntax:

void __fastcall BrushCopy(const Types::TRect &Dest, TBitmap* Bitmap, const Types::TRect &Source, TColor Color);

Description

Use BrushCopy to achieve special effects such as making the copied image partially transparent. BrushCopy is provided mainly for backward compatibility. Use a TImageList instead of BrushCopy.

Dest specifies the rectangular portion of the canvas that will receive the copy of the bitmap. Bitmap specifies the graphic to copy from. Source specifies the rectangular area of Bitmap to copy. Color specifies the color in Bitmap to replace with the Brush of the canvas.

To use BrushCopy to make the copied image partially transparent, specify the color of the surface of the canvas (clBackground for example) as the Color of the Brush property, then call BrushCopy.


心中的那片蓝天,永远为你而存在... ...
2006-09-18 09:28
快速回复:[求助]解释下这下语句
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.097732 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved