节点文献
计算机图形学编程实践研究
Research on Computer Graphics Programming Practice
【摘要】 计算机图形学教学的编程实践主要使用TC绘图函数,不适用于Windows系统。Windows系统常用的具有图形功能的MFC学习掌握比较困难。VB既具有良好的Windows界面,又易于学习。分析了VB的画点方法,以画直线算法为例,设计了使用文本框输入坐标数据的界面,并给出了样例程序模板;该模板可以改编用于各种手工输入坐标的直线或曲线算法。研究了通过鼠标输入坐标的方法,改进了相应的程序模板;讨论了将绘图结果保存成图像文件的方法及其应用。结果表明,VB能够很好地改进图形学编程实践教学。
【Abstract】 Computer graphics programming practice mainly uses TC drawing function which is unsuitable for Windows system. On the other hand,MFC,Windows system’s own drawing tool is more difficult to master. VB can be a very good balance,because it is not only has the good Windows interface,but also easy to learn. Firstly,we study the method of how to draw a pixel in VB by an example of drawing the straight line.We design an interface in which the coordinate data can be input by TextBox,and give the program templates which the students can adapt as the sample for line and curve algorithm with manually inputting the coordinates. Secondly,the illustration of the solution that coordinates are input by mouse,and improve the corresponding program template. Finally,the drawing result after the algorithm runs is saved as an image file and it’s application are discussed. The results show that VB can well improve the graphics programming practice teaching.
- 【文献出处】 北京印刷学院学报 ,Journal of Beijing Institute of Graphic Communication , 编辑部邮箱 ,2014年04期
- 【分类号】TP391.41-4;G642
- 【被引频次】3
- 【下载频次】56