摘要:WPF通过使用几何图形、图画和路径,可以降低2D图形的开销。
然而这种设计不适合需要渲染大量图形元素的绘图密集型应用程序。例如绘图程序、演示粒子碰撞的物理模型程序或横向卷轴形式的游戏。这些应用程序面临的不是图形复杂程度的问题,而纯粹是单独的图形元素数量的问题。即使用量级更轻的Geometry对象代替Path元素,需要的开销也仍会较大地影响应用程序的性能。36080
WPF针对此类问题的解决方案是,使用低级的可视化层(viusal layer)模型。基本思想是将每个图形元素定义为一个Visual对象,Visual对象是一个极轻量级的要素,比Geometry或Path对象需要的开销更小。然后可以用单个元素在窗口中渲染所有可视化对象。
毕业论文关键词: 图形渲染;命中测试;WPF技术;VS工具;C#.NET语言
WPF-based Visualization Rendering and Hit Test
Abstract:WPF by using geometric shapes, pictures and path, can reduce the cost of 2 d graphics.
However, this kind of design is not suitable for the need to render a large number of graphical elements of the graphic intensive applications.Such as drawing program, the physical model of particle collision demonstration program or game in the form of horizontal scroll.These applications not graphics of complexity problem, and the number of graphical elements are purely inpidual problems.Using magnitude lighter Geometry object instead of Path element, the need of overhead will also significantly affect the performance of the application.
WPF solution for such problem is that the use of low-level visual layer (viusal layer) model.The basic idea is each graphic element is defined as a Visual object, the elements of the Visual object is an extremely lightweight, than Geometry or Path object need less overhead.Then you can use a single element render all visual objects in a window.
KeyWords: WPF technology; VS Tools; C # .NET Language
目  录
1  绪论    1
1.1  课题研究的目的    1
1.2  课题研究的意义    1
1.3  论文主要内容以及组织结构    1
2  开发工具与开发技术    2
2.1  Microsoft Visual Studio工具    2
2.2  C#.NET语言    2
2.3  WPF    4
2.4  xaml语言    6
2.5  可视化层(visual layer)模型    8
3  WPF的2D绘图功能    9
3.1  理解形状    9
3.1.1  椭圆和矩形    9
3.1.3  直线    10
3.1.4  折线    10
3.1.5  多边形    10
3.2  画刷    10
3.2.1  SolidColourBrush画刷    11
3.2.2  LinearGradientBrush画刷    11
3.3  变换    11
3.3.1  变换形状    12
3.4  路径和几何图形    12
3.4.1  路径和几何形状    12
3.4.2  直线    12
3.5  画图    13
3.5.1  显示画图    13
4  可视化对象    15
4.1  命中测试方案    15
4.2  命中测试支持    15
4.3  命中测试和Z顺序    16
4.4  使用默认命中测试    17
4.5  使用命中测试结果回调    18
4.6  使用命中测试筛选回调    20
4.7  重写默认命中测试    21
5  程序实现    23
5.1  用xaml语言构建应用程序用户界面    23
上一篇:城轨变电所综合系统电气与保护仪表设计
下一篇:移频轨道电路参数测试仪硬件设计

认知无线电网络中基于双...

基于TCP/IP技术的转向架振动测试系统设计

基于PM2.5浓度的健康出行路径规划及实现

基于涡旋电磁波的新型雷达成像技术研究

基于相关滤波器的长期跟踪算法研究

基于ZigBee协议轨道交通环...

变分模态分解方法研究及...

国内外无刷直流电动机研究现状

《醉青春》导演作品阐述

多元化刑事简易程序构建探讨【9365字】

辩护律师的作证义务和保...

浅谈新形势下妇产科护理...

中国古代秘书擅权的发展和恶变

拉力采集上位机软件开发任务书

高校网球场馆运营管理初探【1805字】

谷度酒庄消费者回访调查问卷表

浅谈传统人文精神茬大學...