画椭圆的方法有很多,这是其中一种,用DDA算法画的-oval paintings are lots of ways, this is one of those painted with the DDA Algorithm 下载
|
这是关于计算机图形学方面的圆与椭圆画法和鼠标交互式画法的程序-This is the computer graphics on the circle and oval painting and mouse interactive painting process 下载
|
采用VC++.NET编写的画线、画矩形、椭圆、弧线和多边形及折线Graphic方法。-using VC.NET prepared by the line drawing, painting rectangular, oval, arcs and polygons and dogleg Graphic methods. 下载
|
此程序为武汉某开发CAD著名的软件公司初级源码功能包括画圆,画直线,矩形,圆弧,画折线,椭圆,三角,多边形等,还有高级功能如镜象,旋转,移动,反转图形等等功能,全部都是基于SDK编程,对于初学和初次涉及WINDOWS编程的人来说很有帮助,可以了解SDK编程与面向对象编程方法,最主要的是可以学习到企业项目开发经验,具有一定的研究价值!-procedure for the development of Wuhan, a leading CAD software companies primary source features include Circle painting line, rectangle, arc, painting dogleg, oval, triangle, polygon, etc., there are advanced features such as mirror, rotate, move, reverse graphics and so on, all because of SDK Programming for beginners and first involving Windows programming useful to those who can understand the SDK programming and object-oriented programming methods, the most important thing is to learn from experience in the development of enterprise projects, which have a certain value to the research! 下载
|
程序的功能: 一、用两种不同算法(DDA法和中点法)画任意直线,输入方式有鼠标取点点法,和对话框输入直线端点法。直线颜色在画线前任意选取。 二、直线的属性控制。可以从对话框中任意输入线宽画直线。还有画虚线的功能,你可以输入虚线中实线部分的长度和空白间隔的长度来画虚线。 三、用两种算法(中点法和正负法)画任意圆。 四、画任意椭圆。画椭圆时限任意取两点确定一矩形,由该矩形确定椭圆的大小。 五、多边形填充。用鼠标取点画任意多边形,可选取任意颜色去填充多边形区域。 六、矩形填充。用鼠标任取两点确定矩形区域,选取任意颜色去填充。 七、直线裁剪。有两种算法实现这一功能,梁友栋法和编码法。先用鼠标画一直线,然后再取两点确定一矩形裁剪框,点击一下右键,裁剪成功。 八、多边形裁剪。先用鼠标取点画一任意多边形,点击右键后继续取两点确定裁剪矩形框,在点击一次右键裁剪执行。 九、弹球。 -procedures functions : one, using two different algorithms (DDA law and midpoint) painting arbitrary line, input from a little mouse, and the dialog box input linear endpoint law. Linear color line drawing in the former arbitrary selection. Two straight attributes. From the dialog box indiscriminate importation linewidth linear paintings. The paintings are dotted line function, you can enter dotted line which is part of the length and spacing of the gap length to paint a dotted line. And, third, using two algorithms (the midpoint of law and the positive and negative) painting arbitrary round. Four paintings arbitrary elliptic. Elliptic painting from 2:00 arbitrary time limit to determine a rectangle, rectangle determined by the size of the ellipse. 5, polygon filling. Dotted with the mouse 下载
|
使用绘制圆弧的方法,输出一个统计图表“圆饼图”和一个“折扇”。 原始数据在数组Data中,这5个数据在圆饼图中为角度不同的扇形,各自角度的计算值分别为38、91、54、125、53,放在数组drgree中。第一个数据的扇形起始角start=0,用绿色画。第二个的起始角start=38,用蓝色画。最后一个的起始角start=308,用橙色画。 折扇的画法是:在左上角坐标(130,40),长150,宽80的椭圆区域内,从22度开始逆时针地画一个15度的扇性,再画一段15度的椭圆弧;然后交替地画扇形和圆弧。-use mapping arc method, output a statistical charts, "Yuan pie" and a "folding fans." The raw data in the array Data, this data in the five round pie for the fan perspective, the perspective of their respective values were calculated 38,91,54,125,53, on the array were drgree. No. 1 fan initial data Kok start = 0, green painted. The second start of the initial angle = 38, painted blue. A final start of the initial angle = 308, with orange painting. Folding fans of paint is : in the upper left corner coordinates (130,40), 150 long, wide oval region of 80, from 22 degrees to start painting an anti-clockwise 15 degrees fan, painting section 15 of ellipse; Then turn to the fan-shaped and painted arc. 下载
|