Description: 实验内容:
1 实现扫描转换多边形的算法填充多边形。
实现内容:
1, 可以画任意多边形。
2, 三角形也是通过扫描转换多边形的算法实现。
具体实现:
画多边形用moveto(),lineto(),两个函数实现画没一条边。
构造ET表,AEL表,通过这两个表填充多边形。
画图步骤:
1. 取顶点:用n记录顶点个数,按下鼠标开始取点,第二次按下取得第二个顶点,第i次按下取得第i 个顶点。取得的顶点放到Verex[]中。
2. 画多边形:按下菜单按钮----多边形。画多边形时可通过颜色菜单选择填充颜色。
3. 填充多边形:按下菜单按钮----填充。填充时可通过颜色菜单选择填充颜色。
4. 重新画一个多边形时需要先点菜单---new,然后再重复1,2,3步。
-experiment : to achieve a polygon scan conversion algorithm filled polygons. Implementation : a can draw arbitrary polygon. 2, as well as through the triangular polygon scan conversion algorithm. Realization : painting polygon with moveto (), LineTo (), two paintings did not function to achieve an edge. Construction ET table, Table AEL, through these two tables filled polygons. Drawing steps : 1. Vertex admitted : n vertices record number, press the mouse started to admit, the second press made the second vertices, i pressed the first time i made its vertex. The vertex put Verex []. 2. Painting polygon : press the menu button-polygon. When painting polygon can be filled with color menu to choose colors. 3. Polygon Filling : press the menu button-filled. When filled with color by color fill Platform: |
Size: 51309 |
Author:god |
Hits:
Description: 实验内容:
1 实现扫描转换多边形的算法填充多边形。
实现内容:
1, 可以画任意多边形。
2, 三角形也是通过扫描转换多边形的算法实现。
具体实现:
画多边形用moveto(),lineto(),两个函数实现画没一条边。
构造ET表,AEL表,通过这两个表填充多边形。
画图步骤:
1. 取顶点:用n记录顶点个数,按下鼠标开始取点,第二次按下取得第二个顶点,第i次按下取得第i 个顶点。取得的顶点放到Verex[]中。
2. 画多边形:按下菜单按钮----多边形。画多边形时可通过颜色菜单选择填充颜色。
3. 填充多边形:按下菜单按钮----填充。填充时可通过颜色菜单选择填充颜色。
4. 重新画一个多边形时需要先点菜单---new,然后再重复1,2,3步。
-experiment : to achieve a polygon scan conversion algorithm filled polygons. Implementation : a can draw arbitrary polygon. 2, as well as through the triangular polygon scan conversion algorithm. Realization : painting polygon with moveto (), LineTo (), two paintings did not function to achieve an edge. Construction ET table, Table AEL, through these two tables filled polygons. Drawing steps : 1. Vertex admitted : n vertices record number, press the mouse started to admit, the second press made the second vertices, i pressed the first time i made its vertex. The vertex put Verex []. 2. Painting polygon : press the menu button-polygon. When painting polygon can be filled with color menu to choose colors. 3. Polygon Filling : press the menu button-filled. When filled with color by color fill Platform: |
Size: 51200 |
Author:god |
Hits:
Description: 对任意的多边形图形按照多边形扫描线法进行颜色填充-Of arbitrary polygonal graphics in accordance with the scan line polygon fill color of law Platform: |
Size: 47104 |
Author:武学森 |
Hits:
Description: 纵向扫描的多边形填充算法,可以实现任意多边形的扫描填充-Longitudinal scan of the polygon fill algorithm, you can realize arbitrary polygon scan fill Platform: |
Size: 3765248 |
Author:daiqinghu |
Hits:
Description: 任意构建多边形,然后填充多边形区域。填充颜色可以任意选取。-Constructing arbitrary polygon, and then filled polygon region. Fill color can be selected. Platform: |
Size: 34816 |
Author:tony |
Hits:
Description: 绘图库
1. 设计和实现一个图形函数库,具有绘制直线
段、任意圆弧、椭圆弧、多边形区域的阴影填
充和颜色填充等功能。(仅调用画点函数)
Windows API: setpixel(hdc,x,y,color)-Drawing 1. Design and Implementation of a graphics library, with the straight-line drawing, arbitrary arc, elliptical arc, polygon area fill and color filled the shadow functions. (Just call paintings point function) Windows API: setpixel (hdc, x, y, color) Platform: |
Size: 3072 |
Author:litao |
Hits:
Description: 实现多边形区域扫描线填充的有序边表算法,并将实现的算法应用于任意多边形的填充,多边形的顶点可由键盘输入或鼠标拾取,填充要准确,不能多填也不能少填。
要求掌握边形区域扫描线填充的有序边表算法的基本原理和算法设计,画出算法实现的程序流程图,使用C或者VC++实现算法,并演示。
-Scan-line polygon fill the region to achieve the orderly side of the table algorithm, and the algorithm is applied to achieve an arbitrary polygon fill, polygon vertices keyboard input or mouse can be picked up, filling must be accurate, no more and no less fill to fill. Required to master the regional scan-line polygon filling algorithm for the orderly side of the table the basic principle and algorithm design, draw algorithm flow chart of procedures for the use of C or VC++ algorithm, and demonstrate. Platform: |
Size: 1930240 |
Author:linym |
Hits:
Description: 设计和实现一个图形函数库,具有绘制直线段、任意圆弧、椭圆弧、多边形区域的阴影填充和颜色填充等功能-Design and implementation of a graphics library, with drawing straight line segments, arbitrary arc, elliptical arc, polygon area fill and color filled the shadow functions Platform: |
Size: 24576 |
Author:celine |
Hits:
Description: 利用“橡皮筋”画线画出任意的多边形,然后根据四连通的区域填充算法,将其填充完整
画线:用鼠标左键在屏幕上单击一点,然后拖动鼠标到你想要到的位置再单击,以此类推,最后一点双击,将其与第一点连接起来形成一个封闭的多边形。
选取种子填充:用鼠标右键点击获取种子点,然后进行填充;
颜色:调取系统自带的调色板选取要填充的颜色
-Use of "rubber band" drawing a line to draw an arbitrary polygon, and then 4-connected region filling algorithm fills in the full
Draw a line: Use the left mouse button click on the screen a bit, and then drag the mouse to the location you want to click, and so on, and lastly double-click will link up with the first point to form a closed polygon.
Select Seeds Filling: Using the mouse right-click access to seed points, and then proceed to filling
Color: Taking of the system comes with the color palette selected to fill Platform: |
Size: 1595392 |
Author:程元森 |
Hits:
Description: 绘制任意凸多边形 逝去此凸多边形 对此凸多边形填色-Passing this to draw an arbitrary convex polygon convex polygon convex polygon fill this Platform: |
Size: 1936384 |
Author:lm |
Hits:
Description: “画图板”程序是用来绘制各种几何图形的画图小程序。该程序主要包括一些功能:
1. 绘制各种几何图形
支持鼠标绘制直线、曲线、矩形、椭圆、封闭任意多边形、圆弧、饼型。
2. 添加文字标注
支持添加文字标注,为绘图作品或绘制图形进行文字说明。
3. 设置画笔和填充
支持选择画笔属性(线宽、线形、线色);支持选择填充属性,即刷子的(颜色、样式)实现对封闭图形的填充。
4. 保存和导入图形文件
支持将当前绘制的图形保存为文件(扩展名为.ple)。支持从磁盘中打开扩展名为ple的图形文件进行编辑。
5. 图形编辑功能
支持对已绘制的图形的简单编辑功能,包括鼠标选中图形、删除选中图形、修改选中图形的画笔和填充样式。
-" Drawing board" procedure is used to draw various geometric drawing applet. The program includes a number of features: a drawing of various geometric shapes support the mouse to draw straight lines, curves, rectangles, ellipses, closed arbitrary polygon, arc, pie. 2 Add text annotation support adding text annotations, text descriptions of graphics work carried out or draw graphics. 3 Set the brush and fill support options brush properties (line width, alignment, line color) support options fill attributes, namely brush (color, style) filled to achieve closure of the graph. 4 Save and import graphics file support to save the current drawing graphics file (extension. Ple). Support from the disk extended graphics file named ple open for editing. 5 graphics editing features have been drawn graphics support for simple editing functions, including the mouse to select the graphics, delete the selected graphic, modify the selected graphic pen and fill styles. Platform: |
Size: 233472 |
Author:youjiaxin |
Hits:
Description: 实现了任意2D图形的扫描填充,任意的图多边形、凹多边形都可以使用该算法。-Achieve a scanning 2D graphics fill any arbitrary FIG polygon concave polygon can use this algorithm. Platform: |
Size: 7992320 |
Author:黄安 |
Hits:
Description: 1. 多文档 MFC 程序
2. 能画基本的二维图形:线段、三角形、矩形、圆、椭圆、任意多边形、文字
3. 位图的操作:能读入位图,并在位图上画图,能把图形保存为位图
4. 编辑功能:设置属性(线型、填充方式、颜色、字体、字体大小)
5. 快捷菜单:快捷菜单应该有
6. 序列化:能把图形图像保存为文件,也能从文件中读出并显示图形和图像(1. multi document MFC program
2. can draw basic two-dimensional graphics: line segment, triangle, rectangle, circle, ellipse, arbitrary polygon, and text
3. bitmap operation: can read the bitmap, and picture on the bitmap, can save the figure as a bitmap
4. edit function: set properties (line type, fill mode, color, font, font size)
5. shortcut menu: the shortcut menu should have
6. serialization: can save graphic images as files, and can read and display graphics and images from files.) Platform: |
Size: 15457280 |
Author:小小MIKO
|
Hits: