GetPixel API (VB)

Started by
0 comments, last by -Fruz- 21 years, 10 months ago
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]
Advertisement
In the picturebox(or whatever contains your map) properties change the scalemode form 1-twip to 3-pixel and it should work.

Virtus junxit, mors non separabit

This topic is closed to new replies.

Advertisement