搜索资源列表
D-ZX-Yccsf
- 像素点的生成 直线生成算法的实现 圆生成算法的实现 区域填充的实现-pixels Generation Linear Algorithm Implementation of the Circle generation algorithm to achieve the realization of regional Filled
jisuanjituxing
- 根据多边形区域的填充原理可以推广到圆域的填充,由于圆的特殊属性,即可根据任何欲填充的像素点与圆心的距离是否大于或小于半径来判断是否在圆内或圆外,具体实现程序如下; 利用中点画圆算法实现边界程序: 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
fill_point
- 种子填充算法,先把种子像素如栈,再逐点扫描该点左右边界之间的像素,并置成新的像素,即完成一条扫描线的转换,然后再取上下扫描线并重复上面的过程,即完成填充.-seed filling algorithm, the first seed pixels as stack, then scan the point-by-point about the border between the pixels, home and a new image, namely, the completion of a
ImproveDDA
- 改进的DDA算法,不论方向输出像素点,即给出线段两端点,就得到唯一的线段像素值-improved algorithm, regardless of the direction of the output pixel, which is given segment ends, on the line is the only value of the pixel
图形学源代码
- 线刷子的线帽法,借助演示了线宽为三个像素点的直线的方法,演示了线刷子线帽法画直线的过程。-line brush line apparatus, with a linewidth of the demonstration three pixels of the line, the line demonstration brush painting lines cap linear process.
exer1
- 图形学中的扫描线填充算法,用VC6.0的MFC实现,较为精炼。使用Getpixel函数和setpixel对像素点颜色取反。-Graphics of the scan line fill algorithm, the MFC with VC6.0 achieve more refined. Setpixel use Getpixel function and color of pixel anti-access.
CoolPainter
- 本软件是一个完全由TC2.0开发的功能不错的图形编辑、处理软件。 由于水平与时间限制目前只支持键盘操作。 一.功能与特色: 1.绘图功能:直线,矩形,任意多边形,圆,贝塞尔曲线及B样条曲线模拟实物造型。 2.编辑功能:对目标图形的拷贝,移动,删除,对某点的任意拉伸、变形,剪切,填充。 3.附加功能:动画时钟,分形模拟景物实例。 注:所绘图形可以选择合适的颜色与线形。 二.使用说明: 1.Tab键鼠标速度控制键,有一次移动1个像素,10个像素两种。 2.Ent
JQM
- 利用graphics.h通过描像素点实现在屏幕上绘制图像,效果是在屏幕上绘制一个机器猫,上面有五角星,颜色会改变,里面涉及到直线、圆等的算法以及递归填充算法,很适合新手学习-Use graphics.h achieved by scanning pixel on the screen to draw the image, the effect is to draw a Viking on the screen, above the five-pointed star, the color wil
mytest--25
- 最基础的图形填充,即通过判断点是否在多边形内,来决定是否填充该像素-The most basic graphics fill, namely, by judging whether a polygon, to decide whether to fill the pixel
ColorBar
- 对屏幕进行不同颜色的区域划分,滚动的单像素线条主要应用于对高分显示器的像素点进行检测,包括单个像素点的亮点,暗点,坏点以及整体的屛质进行检查。-For high-resolution monitor pixel test.
绘制像素点函数
- 绘制像素点函数:在屏幕的P0(20,20)坐标位置处绘制一个绿色像素点,然后读出该像素点的颜色,水平平移100个像素绘制P1点。(The pixel function is plotted: a green pixel is drawn at the P0 (20,20) coordinates of the screen, and then the color of the pixel is read out. 100 pixels are horizontally shifted to dr
例2-4
- 绘制左上角点为P0(100,100),右下角点为P1(600,300)的矩形。矩形边界线为1像素宽的蓝线,矩形内部填充为绿色(Draw the left upper corner is P0 (100100), the lower right corner is P1 (600300) rectangle. The rectangle boundary line is 1 pixels wide blue line, and the inner rectangle is filled with