fill.h
来自「实现了区域填充已经其他画线功能」· C头文件 代码 · 共 37 行
H
37 行
// Fill.h: interface for the CFill class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_FILL_H)
#define AFX_FILL_H
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
struct edge
{
int xmin;
float yi;
float m;
struct edge *next;
};
class CFill
{
public:
void Flood_Fill_8(CDC *pDC,CPoint Pseed,unsigned int old_color,unsigned int fill_color);
void Scan_Fill(CDC *pDC,CPoint Pseed,unsigned boundary_color,unsigned fill_color);
void poly_fill(CDC *pDC,int numpoint,int *points,int color);
void draw_line(CDC *pDC,int y1,int y2,int x,int color);
short insert_aet(struct edge *p,struct edge **p_aet);
void insert_et(struct edge *anedge,struct edge **p_edges);
// CDC *pDC;
CFill();
CFill(CDC*pDoc);
virtual ~CFill();
};
#endif // !defined(AFX_FILL_H)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?