Я использую такой код:
- Код: Выделить всё
Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Text1 = Reverse(Picture1.Point(X, Y))
End Sub
Private Function Reverse(ByVal rgb As Long) As String
Dim Red As Long, Green As Long, Blue As Long
Red = rgb And 255: rgb = rgb \ 256
Green = rgb And 255: rgb = rgb \ 256
Blue = rgb And 255
Reverse = "&H" & Hex(Red) & Hex(Blue) & Hex(Green)
End Function
Но цвет не тот, я даже менял местами R,G,B - но ничего не получается.
Очень срочно надо