在封閉區域填色
vImage | Bitmap | 4 | 必須 | (無) | 圖片物件 | |||||||||
X | Integer | 4 | 必須 | (無) | X 座標,單位為 Pixel | |||||||||
Y | Integer | 4 | 必須 | (無) | Y 座標,單位為 Pixel | |||||||||
FillColor | Color | 4 | 必須 | (無) | 填滿顏色 | |||||||||
fuFillType | FloodFillType | 4 | 可省略 | Surface | 填滿方式:
|
傳回 Bitmap
Private Sub PictureBox1_MouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDoubleClick PictureBox1.Image = FloodFill(PictureBox1.Image, e.X, e.Y, Color.FromArgb(0, 0, 255)) End Sub
Visual Studio .Net 2002 以後相容版本 | Graphic.vb
|