文件名称:jisuanjituxing
-
所属分类:
- 标签属性:
- 上传时间:2008-10-13
-
文件大小:79.84kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
根据多边形区域的填充原理可以推广到圆域的填充,由于圆的特殊属性,即可根据任何欲填充的像素点与圆心的距离是否大于或小于半径来判断是否在圆内或圆外,具体实现程序如下;
利用中点画圆算法实现边界程序:
void CArea_FillData::MidpointCircle(int xc, int yc, int r, int color)
{//画八分之一的圆
int x,y,d
x=0 y=r d=1-r
WholeCircle(xc,yc,x,y,color)
while(x<y)
-According to the regional polygon filling principle can be extended to the domain filled round, a round of special attributes, can be filled under any wishes to the central pixel and the distance is greater than or less than the radius to determine whether the circle or round, realize the procedure is as follows; Midpoint Circle Algorithm border procedures : void CArea_FillData : : MidpointCircle (int xc. yc int, int r, int color) (/ / painting of the eighth round int x, y, d x = 0 y = r d = 1-r WholeCircle (xc, yc, x, y, color) while (x
利用中点画圆算法实现边界程序:
void CArea_FillData::MidpointCircle(int xc, int yc, int r, int color)
{//画八分之一的圆
int x,y,d
x=0 y=r d=1-r
WholeCircle(xc,yc,x,y,color)
while(x<y)
-According to the regional polygon filling principle can be extended to the domain filled round, a round of special attributes, can be filled under any wishes to the central pixel and the distance is greater than or less than the radius to determine whether the circle or round, realize the procedure is as follows; Midpoint Circle Algorithm border procedures : void CArea_FillData : : MidpointCircle (int xc. yc int, int r, int color) (/ / painting of the eighth round int x, y, d x = 0 y = r d = 1-r WholeCircle (xc, yc, x, y, color) while (x
(系统自动生成,下载前可以参看下载内容)
下载文件列表
四向种子填充对圆的填充/Area_Fill/Area_Fill.aps
四向种子填充对圆的填充/Area_Fill/Area_Fill.clw
四向种子填充对圆的填充/Area_Fill/Area_Fill.cpp
四向种子填充对圆的填充/Area_Fill/Area_Fill.dsp
四向种子填充对圆的填充/Area_Fill/Area_Fill.dsw
四向种子填充对圆的填充/Area_Fill/Area_Fill.h
四向种子填充对圆的填充/Area_Fill/Area_Fill.ncb
四向种子填充对圆的填充/Area_Fill/Area_Fill.opt
四向种子填充对圆的填充/Area_Fill/Area_Fill.plg
四向种子填充对圆的填充/Area_Fill/Area_Fill.rc
四向种子填充对圆的填充/Area_Fill/Area_FillData.cpp
四向种子填充对圆的填充/Area_Fill/Area_FillData.h
四向种子填充对圆的填充/Area_Fill/Area_FillDoc.cpp
四向种子填充对圆的填充/Area_Fill/Area_FillDoc.h
四向种子填充对圆的填充/Area_Fill/Area_FillView.cpp
四向种子填充对圆的填充/Area_Fill/Area_FillView.h
四向种子填充对圆的填充/Area_Fill/ChildFrm.cpp
四向种子填充对圆的填充/Area_Fill/ChildFrm.h
四向种子填充对圆的填充/Area_Fill/Debug
四向种子填充对圆的填充/Area_Fill/MainFrm.cpp
四向种子填充对圆的填充/Area_Fill/MainFrm.h
四向种子填充对圆的填充/Area_Fill/ReadMe.txt
四向种子填充对圆的填充/Area_Fill/res/Area_Fill.ico
四向种子填充对圆的填充/Area_Fill/res/Area_Fill.rc2
四向种子填充对圆的填充/Area_Fill/res/Area_FillDoc.ico
四向种子填充对圆的填充/Area_Fill/res/Toolbar.bmp
四向种子填充对圆的填充/Area_Fill/res
四向种子填充对圆的填充/Area_Fill/Resource.h
四向种子填充对圆的填充/Area_Fill/StdAfx.cpp
四向种子填充对圆的填充/Area_Fill/StdAfx.h
四向种子填充对圆的填充/Area_Fill
四向种子填充对圆的填充/实验四.doc
四向种子填充对圆的填充
www.dssz.com.txt
四向种子填充对圆的填充/Area_Fill/Area_Fill.clw
四向种子填充对圆的填充/Area_Fill/Area_Fill.cpp
四向种子填充对圆的填充/Area_Fill/Area_Fill.dsp
四向种子填充对圆的填充/Area_Fill/Area_Fill.dsw
四向种子填充对圆的填充/Area_Fill/Area_Fill.h
四向种子填充对圆的填充/Area_Fill/Area_Fill.ncb
四向种子填充对圆的填充/Area_Fill/Area_Fill.opt
四向种子填充对圆的填充/Area_Fill/Area_Fill.plg
四向种子填充对圆的填充/Area_Fill/Area_Fill.rc
四向种子填充对圆的填充/Area_Fill/Area_FillData.cpp
四向种子填充对圆的填充/Area_Fill/Area_FillData.h
四向种子填充对圆的填充/Area_Fill/Area_FillDoc.cpp
四向种子填充对圆的填充/Area_Fill/Area_FillDoc.h
四向种子填充对圆的填充/Area_Fill/Area_FillView.cpp
四向种子填充对圆的填充/Area_Fill/Area_FillView.h
四向种子填充对圆的填充/Area_Fill/ChildFrm.cpp
四向种子填充对圆的填充/Area_Fill/ChildFrm.h
四向种子填充对圆的填充/Area_Fill/Debug
四向种子填充对圆的填充/Area_Fill/MainFrm.cpp
四向种子填充对圆的填充/Area_Fill/MainFrm.h
四向种子填充对圆的填充/Area_Fill/ReadMe.txt
四向种子填充对圆的填充/Area_Fill/res/Area_Fill.ico
四向种子填充对圆的填充/Area_Fill/res/Area_Fill.rc2
四向种子填充对圆的填充/Area_Fill/res/Area_FillDoc.ico
四向种子填充对圆的填充/Area_Fill/res/Toolbar.bmp
四向种子填充对圆的填充/Area_Fill/res
四向种子填充对圆的填充/Area_Fill/Resource.h
四向种子填充对圆的填充/Area_Fill/StdAfx.cpp
四向种子填充对圆的填充/Area_Fill/StdAfx.h
四向种子填充对圆的填充/Area_Fill
四向种子填充对圆的填充/实验四.doc
四向种子填充对圆的填充
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.