Hi.
How do i declaer the API so i can use the GetPixel function?
Printable View
Hi.
How do i declaer the API so i can use the GetPixel function?
Use this program:
C:\Program Files\Microsoft Visual Studio\Common\Tools\Winapi\Apiload.exe
Put this in a module
VB Code:
Public Declare Function GetPixel Lib "gdi32" Alias "GetPixel" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long