
03-19-2003, 08:38 AM
|
|
Newcomer
|
|
Join Date: Mar 2003
Location: Swe
Posts: 3
|
|
GetPixel
|
Im trying to make a program that runs in the back and when i hit a key it use GetPixel to get the RGB value from a pixel on the screen.
It lookings like this:
Dim hDCDesk As Long
Dim ReturnCol As Long
hDCDesk = GetDC(0)
ReturnCol = GetPixel(hDCDesk, x, y)
then i use
Debug.Print ReturnCol
so I can see the RBG value. This works fine.
The problem is when i start the program i look at a pixel and get its RGB value, later i look at the same pixel and i know that the RGB value have changed but when i look at the value its the same as the first one. I dont know what im doning wrong so i hope someone can help me with this or point me in some direction where i can get some info about this.
PS. Hope u can read and understand my bad english DS.
|
|