Couleur d'un pixel sur l'écran

fabiin - 23 avril 2001 à 21:39
Fwdavy Messages postés 57 Date d'inscription lundi 27 septembre 2004 Statut Membre Dernière intervention 8 novembre 2007 - 15 sept. 2005 à 14:38
Salut !
je voulais savoir komment il fallai faire pour connaitre la couleur d'un pixel sur l'écran entier ???
(enfin si c possible ;) )
@+
fabs :)

2 réponses

-------------------------------
Réponse au message :
-------------------------------

Salut !
je voulais savoir komment il fallai faire pour connaitre la couleur d'un pixel sur l'écran entier ???
(enfin si c possible ;) )
@+
fabs :)

Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function GetPixel Lib "gdi32" Alias "GetPixel" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long

private sub GetPixelScreenColor(x as long,y as long)
dim hDCSrc As Long
dim RGBPixelColor as long

hDCSrc = GetDC(0&)
RGBPixelColor = getpixel(hDCSrc,x,y)
end sub
0
Fwdavy Messages postés 57 Date d'inscription lundi 27 septembre 2004 Statut Membre Dernière intervention 8 novembre 2007
15 sept. 2005 à 14:38
Je suis sur pocket PC et les Lib "user32" et Lib "gdi32" ne marche pas, comment puis je contourner le problême ?
0
Rejoignez-nous