GetPixel sans Lib "user32" et Lib "gdi32"

Fwdavy Messages postés 57 Date d'inscription lundi 27 septembre 2004 Statut Membre Dernière intervention 8 novembre 2007 - 22 sept. 2005 à 08:49
BruNews Messages postés 21040 Date d'inscription jeudi 23 janvier 2003 Statut Modérateur Dernière intervention 21 août 2019 - 22 sept. 2005 à 09:17
Salut,

Je cherche a obtenir la couleur hexadecimal d'un pixel a l'ecran. Sachant que je suis sur PocketPC et que les Lib "user32" et Lib "gdi32" ne marche pas. Dim c As Color = bmp.GetPixel(1, 1) marche, mais comment convertir color en hexadecimal ?

merci

1 réponse

BruNews Messages postés 21040 Date d'inscription jeudi 23 janvier 2003 Statut Modérateur Dernière intervention 21 août 2019
22 sept. 2005 à 09:17
color.ToArgb()
color.ToString()

ciao...
BruNews, MVP VC++
0
Rejoignez-nous