2012年9月18日
摘要: public class Test{ //.................} 阅读全文
posted @ 2012-09-18 19:35 kiny 阅读(90) 评论(0) 推荐(0) 编辑
  2012年9月8日
摘要: Delphi2009或者其他的语言说道遍历不是for..in就是直接foreach,Delphi7如何遍历呢?一、遍历枚举 1 //需要引用TpyInfo单元 2 Type 3 TImageType = (jpg,gif,png,bmp,tif,psd); 4 5 var 6 image:TImageType; 7 i:Integer; 8 begin 9 i := 0;10 for image:= Low(TImageType) to High(TImageType) do11 begin12 TpyInfo.GetEnumN... 阅读全文
posted @ 2012-09-08 14:18 kiny 阅读(970) 评论(0) 推荐(0) 编辑
  2012年6月18日
摘要: //----------------------------------------------------------------------------// Copyright (C) 2004-2012 by EMGU. All rights reserved. //----------------------------------------------------------------------------using System;namespace Emgu.CV.Util{ /// <summary> /// The default exception... 阅读全文
posted @ 2012-06-18 00:20 kiny 阅读(438) 评论(0) 推荐(0) 编辑
  2012年5月19日
摘要: 使用的函数DrawIcon,DrawImageDrawIcon(Icon,Rectangle)DrawIcon(Icon,Int32,Int32)private void Form1_Paint(object sender, PaintEventArgs e){ //创建画板从Paint事件中的直接引用Graphics对象 Graphics graphics = e.Graphics; graphics.Clear(Color.Black); Icon icon = new Icon("test.ico",new Size(256,256)); graph... 阅读全文
posted @ 2012-05-19 00:32 kiny 阅读(338) 评论(0) 推荐(0) 编辑
  2012年5月18日
摘要: 绘制文本在GDI+是非常广泛的应用。就像常见的验证码。在GDI+中使用DrawStringDrawString(String,Font,Brush,PointF)DrawString(String,Font,Brush,RectangleF)DrawString(String,Font,Brush,PointF,StringFormat)DrawString(String,Font,Brush,RectangleF,StringFormat)DrawString(String,Font,Brush,Single,Single)DrawString(String,Font,Brush,Singl 阅读全文
posted @ 2012-05-18 23:52 kiny 阅读(1992) 评论(0) 推荐(0) 编辑
摘要: 使用的函数DrawPath在绘制直线的时候我们绘制了坐标,我用了多个DrawLine函数堆砌而成,在后来的绘制直线(补充)中和绘制曲线当中都是重复使用DrawLine和DrawBezier函数去实现的。现在使用DrawPath函数可以一次绘制不同组合的图形。DrawPath(Pen,GraphicsPath)GraphicsPath是System.Drawing.Drawing2D命名空间中的一个类,这个类里面有对应GDI+DrawArc,DrawPie,DrawRectangle等等。绘制三角形,四边形,圆,椭圆,直线,曲线,弧度组合。private void Form1_Paint(obj 阅读全文
posted @ 2012-05-18 18:56 kiny 阅读(864) 评论(0) 推荐(0) 编辑
摘要: 用到函数DrawPieDrawPie(Pen,Rectangle,Single,Single)DrawPie(Pen,RectangleF,Single,Single)DrawPie(Pen,Int32,Int32,Int32,Int32,Int32,Int32,Int32)DrawPie(Pen,Single,Single,Single,Single,Single,Single)private void Form1_Paint(object sender, PaintEventArgs e){ //创建画板从Paint事件中的直接引用Graphics对象 Graphics... 阅读全文
posted @ 2012-05-18 17:29 kiny 阅读(1355) 评论(0) 推荐(0) 编辑
摘要: 用到的函数DrawRectangle、DrawPolygonDrawRectangle(Pen,Rectangle)DrawRectangle(Pen,Int32,Int32,Int32,Int32)DrawRectangle(Pen,Single,Single,Single,Single)DrawPolygon(Pen,Point[])DrawPolygon(pen,PointF[])先画一个矩形private void Form1_Paint(object sender, PaintEventArgs e){ //创建画板从Paint事件中的直接引用Graphics对象 ... 阅读全文
posted @ 2012-05-18 17:22 kiny 阅读(4990) 评论(0) 推荐(0) 编辑
  2012年5月17日
摘要: 前面利用DrawArc能绘制出椭圆来。GDI+还有专门绘制椭圆的函数DrawEllipseDrawEllipse(Pen,Rectangle)DrawEllipse(Pen,RectangleF)DrawEllipse(Pen,Int32,Int32,Int32,Int32)DrawEllipse(Pen,Single,Single,Single,Single)private void Form1_Paint(object sender, PaintEventArgs e){ //创建画板从Paint事件中的直接引用Graphics对象 Graphics graphics ... 阅读全文
posted @ 2012-05-17 22:23 kiny 阅读(929) 评论(0) 推荐(0) 编辑
摘要: DrawBezier(Pen,Point,Point,Point,Point)DrawBezier(Pen,PointF,PointF,PointF,PointF)DrawBezier(Pen,Single,Single,Single,Single,Single,Single,Single,Single)DrawCurve(Pen,Point[])DrawCurve(Pen,PointF[])DrawCurve(Pen,Point[],Single)DrawCurve(Pen,PointF[],Int32,Int32)DrawCurve(Pen,Point[],Int32,Int32,Sing 阅读全文
posted @ 2012-05-17 18:48 kiny 阅读(2140) 评论(0) 推荐(0) 编辑