📄 fill.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -