标题:[求助]解释下这下语句
只看楼主
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



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-90889-1-1.html




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

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