资源简介
提供了在.Net环境下进行图形编程的几种绘图方式,并测试了各种绘图方式的运行效率,为编程人员提供直观的测试结果,为程序员选择合适的绘图方式提供参考。

代码片段和文件信息
using System;
using System.Windows;
namespace DrawingTest {
///
/// Defines the DrawingTest application.
public partial class App: Application {
///
/// The width of the client area of all test windows in device-independent units.
///
public const int ClientWidth = 400;
///
/// The height of the client area of all test windows in device-independent units.
///
public const int ClientHeight = 400;
///
/// The number of available colors for pens and brushes.
public const int ColorCount = 6;
///
/// The number of objects drawn per test.
public const int Iterations = 10000;
///
/// Indicates whether anti-aliasing is enabled for all subsequently run tests.
public static bool AntiAliased = true;
///
/// The current for all subsequently run tests.
public static TestMode Mode = TestMode.PensOnly;
///
/// Gets the vertex coordinates for the specified angle.
///
/// The central angle of the vertex in degrees.
///
/// Returns the x-coordinate of the vertex at .
///
/// Returns the y-coordinate of the vertex at .
public static void GetVertex(int degrees out double x out double y) {
double width = ClientWidth / 2;
double height = ClientHeight / 2;
double radians = degrees * Math.PI / 180;
x = Math.Cos(radians) * width + width;
y = Math.Sin(radians) * height + height;
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2011-07-27 19:19 bin\
文件 25600 2011-07-27 19:19 bin\DrawingTest.exe
目录 0 2011-07-27 19:19 DrawingTest\
文件 1109 2011-06-08 19:29 DrawingTest.sln
文件 1581 2011-06-09 14:39 DrawingTest\app.manifest
文件 1792 2011-06-08 14:26 DrawingTest\App.xaml
文件 2018 2011-07-27 16:29 DrawingTest\App.xaml.cs
文件 836 2011-07-27 19:06 DrawingTest\AssemblyInfo.cs
文件 4798 2011-06-12 19:03 DrawingTest\DrawingTest.csproj
文件 1902 2011-07-27 16:29 DrawingTest\GdiBufferTest.cs
文件 1150 2011-06-12 18:53 DrawingTest\GdiBufferTest.Designer.cs
文件 1463 2011-07-27 16:30 DrawingTest\GdiDirectTest.cs
文件 1150 2011-06-12 18:52 DrawingTest\GdiDirectTest.Designer.cs
文件 2855 2011-06-12 19:03 DrawingTest\Gdiob
文件 3867 2011-07-27 16:29 DrawingTest\MainWindow.xaml
文件 6370 2011-07-27 16:29 DrawingTest\MainWindow.xaml.cs
文件 543 2011-06-08 14:20 DrawingTest\TestMode.cs
文件 340 2011-06-08 14:20 DrawingTest\WpfLineTest.xaml
文件 1415 2011-07-27 16:30 DrawingTest\WpfLineTest.xaml.cs
文件 3359 2011-06-12 19:03 DrawingTest\Wpfob
文件 340 2011-06-08 14:20 DrawingTest\WpfPathTest.xaml
文件 1815 2011-07-27 16:30 DrawingTest\WpfPathTest.xaml.cs
文件 346 2011-06-08 14:20 DrawingTest\WpfStreamTest.xaml
文件 1704 2011-07-27 16:30 DrawingTest\WpfStreamTest.xaml.cs
目录 0 2011-07-27 19:16 Java\
文件 383 2011-07-27 19:16 Java\DrawingTest$1.class
文件 3695 2011-07-27 19:16 Java\DrawingTest.class
文件 3779 2011-07-27 16:31 Java\DrawingTest.java
文件 673 2011-07-27 19:15 Java\ReadMe.txt
文件 592 2011-07-27 19:17 Java\RunJava.bat
文件 737 2011-07-27 19:16 Java\TestMode.class
............此处省略1个文件信息
相关资源
- USB.Over.Network.Server 注册机
- dotnet 写字板 实验 源代码 不好请要不
- .net面试简历内容非常细致
- .net网站服装销售系统(MVC)
-
分别适用于.NET fr
amework 2.0和4.0的E - 简易绘图的制作 (一)WPF
-
安装 .net fr
amework 4.0失败原因是KB9 - MFC绘图小软件源代码(可当VC大作业用
- 简易绘图程序(计算机图形学课程设
- vs2005骑士巡游问题-分治法C
- 企业销售管理信息系统(全套)
- VC 使用GDI 矢量绘图软件源代码
- 选择题自动考试系统
- EXCEL文件转换成固定的格式的文本格式
- .net计件工资管理程序 啊
- powerdatagrid控件 源码
- SunnyUI.Net
- CRC校验小工具
- .NET WinForm 和 WPF 的UI界面库,收集整合
- Oxford Industries 采用 Microsoft.NET 平台实
- ssk皮肤
- dotnetfx_cleanup_tool .NET删除工具
- CAD门窗绘图插件
- 《WCF服务编程(第三版)》.pdf
- 初学Visual Basic 2010代码
- 网上购物商城系统完整版
- Butterfly.net通过按需计算推动下一代游
- 蒙恬tooya pro艺匠绘图板驱动 v5.03 官方
- artnet 开发包
- AutoCAD二次开发在直齿圆柱齿轮参数化
评论
共有 条评论