如题,
void setfillstyle(
FILLSTYLE* pstyle
);
void setfillstyle(
int style,
long hatch = NULL,(这个参数如果不写,就是默认为NULL对吗?)
IMAGE* ppattern = NULL
);
void setfillstyle(
BYTE* ppattern8x8
);
如题,
void setfillstyle(
FILLSTYLE* pstyle
);
void setfillstyle(
int style,
long hatch = NULL,(这个参数如果不写,就是默认为NULL对吗?)
IMAGE* ppattern = NULL
);
void setfillstyle(
BYTE* ppattern8x8
);
函数的不同参数形式,叫“重载”。通过传入不同形式的参数,实现函数不同的功能。
setfillstyle 有多种重载形式,具体请参考:https://docs.easyx.cn/setfillstyle
参数的声明或定义里面如果写了赋值,如果调用函数的时候没有传递该参数,就会直接传入默认值。所以 hatch 参数不写的话就是 NULL。