文件名称:javascriptlinedrawing_src
- 所属分类:
- WEB源码
- 资源属性:
- [JavaScript] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 5kb
- 下载次数:
- 0次
- 提 供 者:
- 曲**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
In this article, I want to explain and deduce the line drawing algorithm by Bresenham. Afterwards, I will show an optimized version which can be used to draw lines in Gecko based browsers like Mozilla or Firefox and Microsoft s Internet Explorer. As you know, HTML itself is not able to describe lines. Therefore, there is no built-in features in the above-mentioned browsers for drawing lines. By implementing the Bresenham algorithm with Javascr ipt while applying some tricks, we will be able to draw lines in a good manner in respect to the browser s runtime and memory footprints. -In this article, I want to explain and deduce the line drawing algorithm by Bresenham. Afterwards, I will show an optimized version which can be used to draw lines in Gecko based browsers like Mozilla or Firefox and Microsoft s Internet Explorer. As you know, HTML itself is not able to describe lines. Therefore, there is no built-in features in the above-mentioned browsers for drawing lines. By implementing the Bresenham algorithm with Javascr ipt while applying some tricks, we will be able to draw lines in a good manner in respect to the browser s runtime and memory footprints.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
src
...\article_illustrations.html
...\graphics.js
...\graphicstest.html
...\article_illustrations.html
...\graphics.js
...\graphicstest.html