上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页
摘要: 绘图质量参数: 阅读全文
posted @ 2010-12-08 18:45 巅枫 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 路径中的拐点结合样式:Delphi微软说明LineJoinBevelBevel指定成斜角的联接。这将产生一个斜角。LineJoinMiterMiter指定斜联接。这将产生一个锐角或切除角,具体取决于斜联接的长度是否超过斜联接限制。LineJoinMiterClippedMiterClipped指定斜联接。这将产生一个锐角或斜角,具体取决于斜联接的长度是否超过斜联接限制。LineJoinRoundRound指定圆形联接。这将在两条线之间产生平滑的圆弧。 阅读全文
posted @ 2010-12-08 18:37 巅枫 阅读(955) 评论(0) 推荐(0) 编辑
摘要: //闭合曲线var g: TGPGraphics; p: TGPPen; sb: TGPSolidBrush; pts: array[0..4] of TGPPoint;begin g := TGPGraphics.Create(Canvas.Handle); sb := TGPSolidBrush.Create(MakeColor(255,255,255)); p := TGPPe... 阅读全文
posted @ 2010-12-08 18:32 巅枫 阅读(493) 评论(0) 推荐(0) 编辑
摘要: //画曲线var g: TGPGraphics; p: TGPPen; pts: array[0..4] of TGPPoint;begin g := TGPGraphics.Create(Canvas.Handle); p := TGPPen.Create(MakeColor(255,0,0),4); pts[0].X := 11; pts[0].Y := 11; pts[1].... 阅读全文
posted @ 2010-12-08 18:28 巅枫 阅读(621) 评论(0) 推荐(0) 编辑
摘要: //画贝塞尔曲线var g: TGPGraphics; p: TGPPen;begin g := TGPGraphics.Create(Canvas.Handle); p := TGPPen.Create(MakeColor(255,0,0),2); g.DrawBezier(p, 11,11, 88,333, 99,0, 222,111); {参数是画笔与 4 个点的坐标} p.Fr... 阅读全文
posted @ 2010-12-08 17:50 巅枫 阅读(754) 评论(0) 推荐(0) 编辑
摘要: var g:TGPGraphics; p:TGPPen; sb:TGPSolidBrush; pts:array[0..4] of TGPPoint;begin g:=TGPGraphics.Create(Canvas.Handle); g.Clear(aclWhite); p:=TGPPen.Create(aclRed,2); sb:=TGPSolidBrush.Create(a... 阅读全文
posted @ 2010-12-08 17:41 巅枫 阅读(418) 评论(0) 推荐(0) 编辑
摘要: //饼图描边与填充var g: TGPGraphics; p: TGPPen; sb: TGPSolidBrush;begin g := TGPGraphics.Create(Canvas.Handle); sb := TGPSolidBrush.Create(MakeColor(255,255,255)); p := TGPPen.Create(MakeColor(255,0,0),... 阅读全文
posted @ 2010-12-08 17:34 巅枫 阅读(480) 评论(0) 推荐(0) 编辑
摘要: //画弧线var g: TGPGraphics; p: TGPPen;begin g := TGPGraphics.Create(Canvas.Handle); p := TGPPen.Create(MakeColor(255,0,0),2); g.DrawArc(p,11,32,300,200,0,90); {参数 2-5 是一个椭圆} p.SetColor(MakeColor(0,... 阅读全文
posted @ 2010-12-08 17:22 巅枫 阅读(447) 评论(0) 推荐(0) 编辑
摘要: //填充与描边var g: TGPGraphics; p: TGPPen; sb: TGPSolidBrush;begin g := TGPGraphics.Create(Canvas.Handle); sb := TGPSolidBrush.Create(MakeColor(255,255,255)); p := TGPPen.Create(MakeColor(255,0,0),6)... 阅读全文
posted @ 2010-12-08 17:19 巅枫 阅读(699) 评论(0) 推荐(0) 编辑
摘要: //路径渐变画刷var g: TGPGraphics; path: TGPGraphicsPath; pb: TGPPathGradientBrush; {声明渐变画刷} num: Integer;const colors: array[0..0] of TGPColor = (aclAqua);begin g := TGPGraphics.Create(Canvas.Handle);... 阅读全文
posted @ 2010-12-08 17:11 巅枫 阅读(1033) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页