GetPixel API (VB)
Why doesn't this code work???
----------------------------------
Public Declare Function GetPixel Lib "gdi32.dll" (ByVal hdc As Long, ByVal nXPos As Long, ByVal nYPos As Long) As Long
Public Function SjekkF(X As Long, Y As Long) As Long
SjekkF = GetPixel(UBBot.map.hdc, X, Y)
End Function
----------------------------------
It returns -1 ! Why? It does the same thing when i use map.Point!
Please help me!
[edited by - -Fruz- on June 11, 2002 10:19:24 AM]
In the picturebox(or whatever contains your map) properties change the scalemode form 1-twip to 3-pixel and it should work.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement