C# GDI+画图
来源:互联网 发布:云呼轰炸机软件 编辑:程序博客网 时间:2024/05/01 23:32
绘制直线、矩形、曲线和多边形
绘制直线
public void DrawLine(Pen pen,Point,Point);
public void DrawLine(Pen pen,PointF,PointF);
public void DrawLine(Pen pen,int,int,int,int);
public void DrawLine(Pen pen, float,float,float,float);
public void DrawLines(Pen pen,PointF[] points);
绘制矩形
public void DrawRectangle(Pen pen,Rectangle rect);
public void DrawRectangle(Pen pen,int x, int y, int width,int height);
public void DrawRectangle(Pen pen,float x, float y, float width, float height);
public void DrawRectangle(Pen pen, Rectangle[] rects);
public void DrawRectangle(Pen pen,RectangleF[] rects);
x 要绘制的矩形的左上角的X坐标
y 要绘制的矩形的左上角的Y坐标
width 要绘制的矩形的宽度
height 要绘制的矩形的高度
绘制简单曲线
public void DrawCurve(Pen,Point[]);
public void DrawCurve(Pen,PointF[]);
public void DrawCurve(Pen,Point[],float);
使用指定的张力绘制
public void DrawCurve(Pen,PointF[],float);
public void DrawCurve(Pen,Point[],int,int,float);
从相对与数组开始位置的偏移量开始绘制
public void DrawCurve(Pen,PointF[],int,int,float);
绘制闭合曲线
public void DrawClosedCurve(Pen,Point[]);
public void DrawClosedCurve(Pen,PointF[]);
public void DrawClosedCurve(Pen,Point[],float,fillmode);
使用指定的张力绘制Point结构数组定义的闭合基数样条
public void DrawClosedCurve(Pen,Point[],float,fillmode);
绘制贝塞尔曲线
public void DrawBeziers(Pen pen,Point pt1,Point pt2,Point pt3,Point pt4);
public void DrawBeziers(Pen pen,PointF pt1,PointF pt2,PointF pt3,PointF pt4);
public void DrawBeziers(Pen pen,float x1,float y1,float x2,float y2,float x3, float y3,float x4,float y4);
public void DrawBeziers(Pen pen,Point[] points);
public void DrawBeziers(Pen pen,PointF[] points);
pt1:表示曲线的起始点
pt2:表示曲线的第一个控制点
pt3 表示曲线第二个控制点
pt4 表示曲线的结束点
绘制多边形
public void DrawPolygon(Pen pen,Point[] points);
public void DrawPolygon(Pen pen,PointF[] points);
绘制弧线
public void DrawArc(Pen pen,Rectangle rect, float startAngle, float sweepAngle);
public void DrawArc(Pen pen,RectangleF rect, float startAngle, float sweepAngle);
public void DrawArc(Pen pen,int x,int y,int width,int height,int startAngle,int sweepAngle);
public void DrawArc(Pen pen,float x,float y,float width,float height,float startAngle,float sweepAngle);
rect 定义椭圆的边界
startAngle 从X轴到弧线的起始点沿顺时针方向度量的角
sweepAngle 从startAngle 参数到弧线的结束点沿顺时针方向度量的角
绘制扇形
public void DrawPie(Pen pen,Rectangle rect, float startAngle, float sweepAngle);
public void DrawPie(Pen pen,RectangleF rect, float startAngle, float sweepAngle);
public void DrawPie(Pen pen,int x,int y,int width,int height,int startAngle,int sweepAngle);
public void DrawPie(Pen pen,float x,float y,float width,float height,float startAngle,float sweepAngle);
startAngle 从X轴到扇形的第一条边沿顺时针方向度量的角
sweepAngle 从startAngle 参数到扇形第二条边沿顺时针方向的度量角
- C# GDI+画图
- C# GDI画图
- C# GDI+画图
- GDI+ C# 画图 、 输出文字
- C# GDI画图 改变图像大小
- C#屏笔 GDI+屏笔 桌面画图(二)
- gdi+ 画图
- GDI+画图
- GDI+画图
- C# GDI+ 简单画图小例子(适合新手)
- C#对各种图片特效(GDI画图)
- C#中使用GDI画图工具动态显示
- gdi画图经验
- gdi画图基本步骤
- GDI+抗锯齿画图
- gdi画图拉伸
- GDI+画图2
- GDI 画图问题集锦
- CentOS 下SVN常用操作
- 正则表达式
- Spring Autowire自动装配
- SpringDaoSupport
- Eclipse配色插件和黑色UI
- C# GDI+画图
- iOS 通过URL网络获取XML数据的两种方式
- Homebrew的安装与使用
- C++第六周作业
- 大学男生食堂卖卫生巾:只向男生售卖买给女朋友
- 最理想的饮茶器具──紫砂壶
- java易错小节之方法内部声明变量不能为public:Illegal modifier for parameter i; only final is permitted
- CocoaPods的使用
- mysql alter