現在選択されているブラシで一定の範囲内を塗りつぶす
Declare Function ExtFloodFill Lib "gdi32.dll" _
(ByVal hdc As Long, ByVal nXStart As Long, ByVal nYStart As Long, _
ByVal crColor As Long, ByVal fuFillType As Long) As Long
Declare Function ExtFloodFill Lib "gdi32.dll" _
(ByVal hdc As Integer, ByVal nXStart As Integer, ByVal nYStart As Integer, _
ByVal crColor As Integer, ByVal fuFillType As Integer) As Integer
BOOL ExtFloodFill(
HDC hdc,
int nXStart,
int nYStart,
COLORREF crColor,
UINT fuFillType
);
引数
hdc
デバイスコンテキストのハンドルnXStart
塗りつぶし開始点のX座標nYStart
同、Y座標crColor
境界線のカラー(この意味はfuFillTypeの指定による)fuFillType
塗りつぶし方法を指定する定数戻り値
正常終了のとき 0以外備考
エラーのとき 0
この関数は、塗りつぶす範囲の形状に左右されないので、複雑な図形の内部を塗りつぶす場合に使うfuFillTypeの定数
FLOODFILLBORDER = 0 crColorを境界染色にして塗りつぶす
(塗りつぶす範囲がcrColorの脅威回線で囲まれている必要あり)
FLOODFILLSURFACE = 1 crColorで指定した色を選択されているブラシの色で置き換える
(境界線が単一色でなくてもよい)