1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Private Declare Function ExtFloodfill Lib "gdi32" _
(ByVal hDC As Long, _
ByVal XStart As Long, _
ByVal YStart As Long, _
ByVal ClrRef As Long, _
ByVal FillType As Long) As Long
Private Declare Function GetPixel Lib "gdi32" _
(ByVal hDC As Long, _
ByVal x As Long, _
ByVal y As Long) As Long
Private Sub Détail_Format(Cancel As Integer, FormatCount As Integer)
Dim x As Long
Me.FillColor = vbBlack
x = ExtFloodfill(planisphere.hdc, 2, 2, GetPixel(planisphere.hdc, 2, 2), 1)
End Sub |
Partager