摘要
指出在VC绘图环境中使用画线函数(LineTo)和画矩形函数(Rectangle)所绘图形与实际需要的图形存在差异,并与Turbo C环境中的相关绘图函数进行了对比分析,说明VC绘图环境中这两个函数的确存在缺陷:LineTo函数无法绘制最后一个点,而Rectangle函数所绘矩形比实际矩形小,给出了解决这种缺陷的方法。
pointed out that graphics drew by using the LineTo function and Rectangle function in VC drawing environment are different to the actual need graphics,then compare the two functions in VC with the related drawing functions in Turbo C.The result is the two functions in VC are really exist defect: the LineTo function can't draw the last point of a line,and the rectangles drew by using Rectangle function are smaller than actual needed rectangles,and then give the methods to solve these defects.
出处
《电脑知识与技术(过刊)》
2012年第10X期7081-7083,共3页
Computer Knowledge and Technology
基金
四川省教育厅青年基金项目(10ZB018)