Location:
Search - draw
Search list
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: 递归圆算法,画出以一个圆为圆心的小圆,再围绕小圆画其他小圆-round recursive algorithm to draw a circle to the center of knolls, and the other paintings hanging around knolls
Platform: |
Size: 24328 |
Author: liucong |
Hits:
Description: 这是一个计算星期几的源码,比较简单,但实现得比较巧妙,可以借鉴一下。-This is a calculated the source several weeks, relatively simple, but achieving them more cleverly, we can draw about.
Platform: |
Size: 1212 |
Author: 赵海亮 |
Hits:
Description:
自制列表头控件,可以自己绘制,自己调节-first homemade Control List, can draw their own graphs, their regulation
Platform: |
Size: 39712 |
Author: tanchune |
Hits:
Description: 一个鼠标驱动程序,虽然有点问题,但是可以借鉴。word文档形式的-a mouse driver, though a bit, but we can draw on. Word document forms of
Platform: |
Size: 9076 |
Author: 毛毛 |
Hits:
Description: 首先给出二维数据,程序自动绘出二维图像.-first given two-dimensional data, programs automatically draw two-dimensional images.
Platform: |
Size: 1110 |
Author: JCFan |
Hits:
Description: 着重介绍指纹识别的算法,指纹增强程序,如何提取方向图等-highlights fingerprint recognition algorithm, fingerprint enhancement procedures, how to draw the map direction
Platform: |
Size: 46092 |
Author: 黄少华 |
Hits:
Description: 本程序是用c语言编程来画图本程序是用c语言编程来画图-c programming language used to draw this process is c programming language used to draw
Platform: |
Size: 2977 |
Author: 汤 |
Hits:
Description: This program demonstrates how to draw on the client area, it also demonstrates how to use the mouse messages. I think the best way to learn programming is programming, so, let s begin our program now.-This program demonstrates how to draw on th e client area, it also demonstrates how to use the mouse messag es. I think the best way to learn programming is p rogramming, so, let s begin our program now.
Platform: |
Size: 13330 |
Author: dcx |
Hits:
Description: 一个抽奖程序,只需要把名单建立在\"名单.txt\"文件中就可以了。-a draw procedure should only list on the "list. Txt "file on it.
Platform: |
Size: 1214652 |
Author: juma |
Hits:
Description: 画图工具 用MFC编写的画图工具,可以画直线、矩形等基本图形。-drawing tools with MFC prepared by the drawing tool can draw straight lines, basic rectangular graphics.
Platform: |
Size: 356604 |
Author: xiaonan |
Hits:
Description: 一个画图的好例子-a good example of the class
Platform: |
Size: 106666 |
Author: 王磊 |
Hits:
Description: 随机画树叶、函数、立方体等图的小程序、-random draw leaves, function, cube map as a small procedure,
Platform: |
Size: 60008 |
Author: 吴亮 |
Hits:
Description: 著名flash源码网站uncontrol上的一个初级程序,用于画出很平滑的曲线,算法很简单,是研究uncontrol上其他源码的基础算法。-famous flash website uncontrol source of a primary procedure for the draw is very smooth curve, the algorithm is very simple, uncontrol study on the basis of other source algorithm.
Platform: |
Size: 5273 |
Author: 金雁飞 |
Hits:
Description: 用VFP写的一个小程序,模拟体育彩票的抽奖-VFP write a small program to simulate the sports lottery draw
Platform: |
Size: 19334 |
Author: 列止 |
Hits:
Description: OpenGL下用异或方式画图-OpenGL or using different methods to draw
Platform: |
Size: 12302 |
Author: 武学斌 |
Hits:
Description: The COLORLB sample shows how to implement an owner-draw list box.
Platform: |
Size: 26057 |
Author: 刘元琦 |
Hits:
Description: tc2.0環境 鍵盤畫圖-tc2.0 keyboard drawing environment
Platform: |
Size: 1536 |
Author: 大华 |
Hits:
Description: 我找的一些的编程的实例 都是很经典的 对与学习编程的人来说有很好的借鉴-I find some of the programming are classic examples of right and learning programming people have a good draw
Platform: |
Size: 1527 |
Author: 张志和 |
Hits:
Description: 我找的一些的编程的实例 都是很经典的 对与学习编程的人来说有很好的借鉴-I find some of the programming are classic examples of right and learning programming people have a good draw
Platform: |
Size: 2717 |
Author: 张志和 |
Hits:
«
1
2
...
45
46
47
48
49
50»