c语言中自画图形如何填色

2025-03-03 17:42:40
推荐回答(2个)
回答1:

setfillstyle(int pattern, int color)//先用这个函数设置一下填充的模式
floodfill(int x, int y, int border)//再用这个函数填充就可以了。

回答2:

floodFill( Point start, Color color, int type )

start:指定开始填充的点的坐标(单位是象素)
color: 填充颜色
type: 填充样式

VB 我没试过,不过相信可以通过这个函数实现。