Hi
I want to get pixel value from picture.
Anyone know how to do this?
Regard
Hi
I want to get pixel value from picture.
Anyone know how to do this?
Regard
Jump to PostTry this :
Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) w = Picture1.Point(X, Y) R = w And RGB(255, 0, 0) G = Int((w And RGB(0, 255, 0)) / 256) B = Int(Int((w And RGB(0, 0, 255)) / 256) / …
hai Naruse,
the following URL may helps you
let me know the status
happy coding
Try this :
Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
w = Picture1.Point(X, Y)
R = w And RGB(255, 0, 0)
G = Int((w And RGB(0, 255, 0)) / 256)
B = Int(Int((w And RGB(0, 0, 255)) / 256) / 256)
labelR.Caption = R
labelR.Caption.Text = G
labelR.Caption.Text = B
End Sub
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.