随笔分类 -  Delphi 的绘图功能

上一页 1 2
Delphi 的绘图功能[8] - TextOut、TextWidth、TextHeight
摘要:unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button... 阅读全文
posted @ 2008-02-17 15:49 万一 阅读(8475) 评论(13) 推荐(1) 编辑
Delphi 的绘图功能[7] - PolyBezier、PolyBezierTo
摘要:unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; Button2: TButton... 阅读全文
posted @ 2008-02-17 10:44 万一 阅读(5605) 评论(0) 推荐(0) 编辑
Delphi 的绘图功能[6] - Polygon、Polyline
摘要:unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; Button2: TButton... 阅读全文
posted @ 2008-02-17 10:41 万一 阅读(9292) 评论(0) 推荐(1) 编辑
Delphi 的绘图功能[5] - 获取 Canvas 对象
摘要:在窗体上添加 Panel1、PaintBox1 和 Button1, 代码如下: procedure TForm1.Button1Click(Sender: TObject); var cvs: TCanvas; begin {PaintBox1 就像窗体一样, 也有 Canvas 属性} PaintBox1.Canvas.Brush.Color := clRed; Pain... 阅读全文
posted @ 2008-02-16 23:25 万一 阅读(12321) 评论(3) 推荐(1) 编辑
Delphi 的绘图功能[4] - 圆弧类图形
摘要:unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; Button2: TButton... 阅读全文
posted @ 2008-02-16 22:53 万一 阅读(8006) 评论(0) 推荐(0) 编辑
Delphi 的绘图功能[3] - 矩形类图形
摘要:unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; Button2: TButton... 阅读全文
posted @ 2008-02-16 22:21 万一 阅读(11487) 评论(8) 推荐(1) 编辑
Delphi 的绘图功能[2] - 入门
摘要:绘图需要有纸、画笔、画刷; Delphi 有 Canvas、Pen、Brush. Canvas 就是画布, 譬如窗体的 Canvas 属性, 就是窗体的画布; Pen 是画笔, 可以设置笔色、笔宽等等; Brush 是画刷, 可以设置颜色等等. //举例: {绘制直线} procedure TForm1.Button1Click(Sender: TObject); begin Canv... 阅读全文
posted @ 2008-02-16 21:26 万一 阅读(9053) 评论(23) 推荐(0) 编辑
Delphi 的绘图功能[1] - TCanvas 的类成员
摘要://过程: Arc BrushCopy Chord CopyRect Draw DrawFocusRect Ellipse Ellipse FillRect FloodFill FrameRect LineTo Lock MoveTo Pie Polygon Polyline PolyBezier PolyBezierTo Rectangle Rectangle Refresh RoundRec... 阅读全文
posted @ 2008-02-16 19:12 万一 阅读(7848) 评论(10) 推荐(0) 编辑
Graphics 单元中的类
摘要://Graphics 单元中的类 TGraphicsObject TFont TPen TBrush TFontRecall TPenRecall TBrushRecall TCanvas TGraphic TPicture TMetafileCanvas TMetafileImage TMetafile TBitmapImage TBitmap TIconImage TIcon TResour... 阅读全文
posted @ 2008-02-16 18:50 万一 阅读(4427) 评论(10) 推荐(0) 编辑

上一页 1 2