Hi
Can you please tell me an method to read image pixel by pixel?
Ta
Read image pixel by pixel
- Dhananjaya
- Posts: 2
- Joined: Tue Jul 21, 2009 11:02 pm
Re: Read image pixel by pixel
You can use following APIs to write and read image pixel by pixel
Code: Select all
Public Declare Function GetPixel _
Lib "gdi32" (ByVal hdc As Long, _
ByVal x As Long, _
ByVal y As Long) As Long
Public Declare Function SetPixelV _
Lib "gdi32" (ByVal hdc As Long, _
ByVal x As Long, _
ByVal y As Long, _
ByVal crColor As Long) As Long