请教如何填充颜色?
用line围成的三角形,怎么填充颜色??
Option Explicit Private Declare Function ExtFloodFill Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long, ByVal wFillType As Long) As Long Private Sub Form_Load() Form1.ScaleMode = 3 Picture1.ScaleMode = 3 Picture1.AutoRedraw = True Picture1.ForeColor = vbRed Picture1.FillColor = vbBlue Picture1.FillStyle = 0 Picture1.Line (Picture1.Width / 2, 0)-(0, Picture1.Height) Picture1.Line -(Picture1.Width, Picture1.Height) Picture1.Line -(Picture1.Width / 2, 0) Call ExtFloodFill(Picture1.hdc, Picture1.Width / 2, Picture1.Height / 2, vbRed, 0) End Sub