SETPIX

CCJ Messages postés 565 Date d'inscription mercredi 19 mai 2004 Statut Membre Dernière intervention 30 avril 2008 - 13 sept. 2004 à 07:22
cs_AlexMAN Messages postés 1536 Date d'inscription samedi 21 décembre 2002 Statut Membre Dernière intervention 24 mai 2009 - 13 sept. 2004 à 21:11
bonjour!
j'ai vu dans mon book qu'on pouvait utiliser setpix pour dessiner un pixel mais ou faut-il entrer les coordonées?
merci de vos reponse
voila
VirusMan :-p

3 réponses

ToutEnMasm Messages postés 587 Date d'inscription jeudi 28 novembre 2002 Statut Membre Dernière intervention 13 décembre 2022 3
13 sept. 2004 à 08:07
Salut,
De quel langage et de quel système s'agit-il ?
Voila ce que dit winhelp sur:

SetPixel sets the pixel at the specified coordinates to the specified color.

COLORREF SetPixel(

HDC hdc, ; handle of device context
int X, // x-coordinate of pixel
int Y, // y-coordinate of pixel
COLORREF crColor // pixel color
);


Parameters

hdc, Il faut l'obtenir par GETDC ou similaire

X, Specifies the x-coordinate, in logical units, of the point to be set.

Y, Specifies the y-coordinate, in logical units, of the point to be set.

crColor, Specifies the color to be used to paint the point.

ToutEnMasm
0
CCJ Messages postés 565 Date d'inscription mercredi 19 mai 2004 Statut Membre Dernière intervention 30 avril 2008 1
13 sept. 2004 à 19:26
c'est de l'assembleur
VirusMan :-p
0
cs_AlexMAN Messages postés 1536 Date d'inscription samedi 21 décembre 2002 Statut Membre Dernière intervention 24 mai 2009 1
13 sept. 2004 à 21:11
Ya pas de fonctions en asm, juste des instructions, c ds kel lib ?
Ptet une macro ?
0
Rejoignez-nous