文件名称:Mysplit
- 所属分类:
- 其它资源
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2008-10-13
- 文件大小:
- 201.26kb
- 下载次数:
- 0次
- 提 供 者:
- 蒋**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
种子填充算法用来在封闭曲线形成的环中填充某中颜色,在这里我们只填充黑色。种子填充其实上是图形学中的算法,其原理是:准备一个堆栈,先将要填充的点push进堆栈中;以后,每pop出一个点,将该点涂成黑色,然后按左上右下的顺序查看它的四个相邻点,若为白(表示还没有填充),则将该邻点push进栈。一直循环,直到堆栈为空。此时,区域内所有的点都被涂成了黑色。这里,我们自己定义了一些堆栈的数据结构和操作,实现了堆栈的初始化、push、pop、判断是否为空、及析构。 -seed filling algorithm used in a closed curve formed by a ring filled with color, here we only filled black. Seed is actually filled with graphics algorithm, and its tenet is : preparing a stack, Filling the first point to push into Stack; After each pop up a point, this point painted black. Press the left, then the right lower in the order View its four adjacent spots, and white (said that it had not yet filled), by being neighbors push into Stack. Has been circulating until the stack is empty. At this point, all the regional point has been Tu became black. Here, our own definition of a stack data structure and operations, the realization of the initial stack, push, pop, to determine whether the air, and destructors.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 47651484mysplit.zip 列表 Mysplit/ Mysplit/DibImage.cpp Mysplit/DibImage.h Mysplit/ErZhiHuaDlg.cpp Mysplit/ErZhiHuaDlg.h Mysplit/lena.bmp Mysplit/MainFrm.cpp Mysplit/MainFrm.h Mysplit/MuBiaoErZhi.h Mysplit/Mysplit.aps Mysplit/Mysplit.clw Mysplit/Mysplit.cpp Mysplit/Mysplit.dsp Mysplit/Mysplit.dsw Mysplit/Mysplit.h Mysplit/Mysplit.ncb Mysplit/Mysplit.opt Mysplit/Mysplit.plg Mysplit/Mysplit.rc Mysplit/MysplitDoc.cpp Mysplit/MysplitDoc.h Mysplit/MysplitView.cpp Mysplit/MysplitView.h Mysplit/QuYuZhengZhangDlg.cpp Mysplit/QuYuZhengZhangDlg.h Mysplit/ReadMe.txt Mysplit/res/ Mysplit/Resource.h Mysplit/res/Mysplit.ico Mysplit/res/Mysplit.rc2 Mysplit/res/MysplitDoc.ico Mysplit/res/Toolbar.bmp Mysplit/StdAfx.cpp Mysplit/StdAfx.h Mysplit/区域.BMP Mysplit/印章.bmp