All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
使用c#操作IBM,WebSphere,MQ_.net资料_编程技术
Sqlserver如何将DBF数据库转换成表_[SQL,Server教程]
十天学会ASP.net,第六天_.net资料_编程技术
修复SQL Server的MDF文件_[SQL Server教程]
C#中return语句的使用方法
Delphi非矩形窗体
防范SQL注入式攻击_[Asp.Net教程]
Visual,Studio,2008,Express,Editions,简体中文版已发布_[Asp.Net教程]
asp.net2.0中Cookie对象的应用实例
HTML网页制作基础教程(3):常用标记讲解_[Html教程]
Reading number is top 10 pictures
Beautiful vacuum girl1
这才是真正的人体艺术5
Group of female porn in 《westwards》, uninhibited woman threatened to not the bottom line2
Seductive beauty of crime2
From China fortress sora aoi4
NeedWallpaper5
Park waits to have her picture taken exposed
性感丰满身材火爆de美女2
每天进步一点点
联通的3G无线网卡我只用了一天,看看流量......
Download software ranking
XML+Web+Service开发教程
Unix video tutorial20
VeryCD电驴(EasyMule) V1.1.9 Build09081
Tram sex maniac 2 (H) rar bag3
Tram sex maniac 2 (H) rar bag1
Boxer vs Yellow3
VC++6.0简体中文版
Red cliff
Eclipse 4.2.2 For Win64
Tram sex maniac 2 (H) rar bag17
aaa published in(发表于) 2014/7/19 0:08:47 Edit(编辑)
delphiGDI图像编程

delphiGDI图像编程

delphiGDI图像编程:画刷类(TBrush)

画刷类(TBrush)

画刷对象(TBrush 对象)用以填充图形,如用画刷颜色或图案对矩形或椭圆进行填充。下面将向读者介绍画刷对象的常用属性。

(1)Color 属性

用于定义画刷的填充颜色。

(2)Bitmap 属性

画刷可使用Bitmap 属性填充图形以产生特殊效果。位图大小为8 个像素点,但为配合高8 个像素点还有一个宽画刷类。

该属性只能在运行时才可以使用。

(3)Style 属性

Style 属性定义了画刷填充图形的风格。Style 属性为枚举类型,画刷中有七种填充模式,共有十五种取值,分别代表不同的填充风格,供用户任意选择。

·BsSolid 实心填充

·BsClear 不填充

·BsHorizontal 水平线填充

·BsVertical 垂直线填充

·BsBDiagonal 斜线填充

·BsFDialogonal 反斜线填充

·BsCross 十字线填充

·BsDiagCross 交叉线填充

·bsDense1 密集填充1

·bsDense2 密集填充2

·bsDense3 密集填充3

·bsDense4 密集填充4

·bsDense5 密集填充5

·bsDense6 密集填充6

·bsDense7 密集填充7

下面用一个程序来测试TBrush 的Style 属性。

创建一个新的工程,在窗体的OnClick 事件过程中添加如下代码:

procedure TForm1.FormClick(Sender: TObject);

var

I:Integer;

begin

for I := 1 to 8 do

begin

Canvas.Brush.Style := TBrushStyle(I); //设置画笔样式

Canvas.Rectangle(45 * I,20,30 + 45 * I,50);

end;

end;




添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.