c#中GraphicsPath的Warp方法
来源:互联网 发布:淘宝论文查重靠谱吗 编辑:程序博客网 时间:2024/05/14 21:48
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Text;
- using System.Windows.Forms;
- using System.Drawing.Drawing2D;
- namespace advanced_drawing
- {
- public partial class Form13 : Form
- {
- public Form13()
- {
- InitializeComponent();
- }
- private void Form13_Paint(object sender, PaintEventArgs e)
- {
- // Create a path and add a rectangle.
- GraphicsPath myPath = new GraphicsPath();
- RectangleF srcRect = new RectangleF(0, 0, 100, 200);
- myPath.AddRectangle(srcRect);
- // Draw the source path (rectangle)to the screen.
- e.Graphics.DrawPath(Pens.Black, myPath);
- // Create a destination for the warped rectangle.
- PointF point1 = new PointF(200, 200);
- PointF point2 = new PointF(400, 250);
- PointF point3 = new PointF(220, 400);
- PointF[] destPoints = { point1, point2, point3 };
- // Create a translation matrix.
- Matrix translateMatrix = new Matrix();
- translateMatrix.Translate(100, 0);
- // Warp the source path (rectangle).
- myPath.Warp(destPoints, srcRect, translateMatrix,
- WarpMode.Perspective, 0.5f);
- // Draw the warped path (rectangle) to the screen.
- e.Graphics.DrawPath(new Pen(Color.Red), myPath);
- }
- }
- }
- c#中GraphicsPath的Warp方法
- c#中GraphicsPath的Flatten方法
- c#中GraphicsPath的Widen方法
- c#中GraphicsPath的AddString方法
- C# GraphicsPath属性、方法
- C# graphicspath 翻转
- 取得GraphicsPath的源码
- gdi+ 的 graphicspath
- 关于warp中遇到Branch Divergence的执行情况
- SimpleCV中shear()函数和warp()函数的区别
- gdi+ 的 graphicspath (一)
- gdi+ 的 graphicspath (一)
- 关于GraphicsPath构造的问题
- warP()
- warp
- 关于GDI+中GraphicsPath进行合并(Union)截切(Exclude)等编程的探讨(1)
- Graphics类和GraphicsPath类的使用
- CUDA中grid、block、thread、warp与SM、SP的关系
- RealMedia File Format (RMFF)
- MyEclipse7.0 M1下载+汉化+注册码
- LWUIT + J4LChart 之 多种Chart
- the status code returned from the server was:500
- C#代码与javaScript函数的相互调用
- c#中GraphicsPath的Warp方法
- 基于Linux的VoIP开放协议和专有协议
- 确定删除吗?
- Think before act
- c#中GraphicsPath的AddString方法
- 利用AJAX实现maximo自动登陆
- SQL Management Studio Express 安装缺少MSXML6解决
- Asp.net 禁用viewstate
- 工厂方法模式