Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1352 connectés 

 


Dernière réponse
Sujet : SVP Prgrammer un cercle en C++ (ou C) en fonction du cent. et du ray.
Carbon_14 Voir aussi peut-être
http://forum.hardware.fr/forum2.ph [...] &owntopic=

Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
Carbon_14 Voir aussi peut-être
http://forum.hardware.fr/forum2.ph [...] &owntopic=
DrWatson

CARBON_14 a écrit a écrit :

Dans les API, il y a  
The Ellipse function draws an ellipse. The center of the ellipse is the center of the specified bounding rectangle. The ellipse is outlined by using the current pen and is filled by using the current brush.  
 
BOOL Ellipse(
 
    HDC hdc, // handle to device context  
    int nLeftRect, // x-coord. of bounding rectangle's upper-left corner  
    int nTopRect, // y-coord. of bounding rectangle's upper-left corner  
    int nRightRect, // x-coord. of bounding rectangle's lower-right corner  
    int nBottomRect  // y-coord. bounding rectangle's f lower-right corner  
   );  




 
Merci aussi  :)

Carbon_14 Dans les API, il y a  
The Ellipse function draws an ellipse. The center of the ellipse is the center of the specified bounding rectangle. The ellipse is outlined by using the current pen and is filled by using the current brush.  
 
BOOL Ellipse(
 
    HDC hdc, // handle to device context  
    int nLeftRect, // x-coord. of bounding rectangle's upper-left corner  
    int nTopRect, // y-coord. of bounding rectangle's upper-left corner  
    int nRightRect, // x-coord. of bounding rectangle's lower-right corner  
    int nBottomRect  // y-coord. bounding rectangle's f lower-right corner  
   );
DrWatson

youdontcare a écrit a écrit :

l'algo c'est bresenham, cherche là-dedans : http://www.google.com/search?sourc [...] ham+circle
 
un cercle ou un disque d'ailleurs ? parce qu'un disque c'est bcp plus simple.  




 
Merci  :)

youdontcare l'algo c'est bresenham, cherche là-dedans : http://www.google.com/search?sourc [...] ham+circle
 
un cercle ou un disque d'ailleurs ? parce qu'un disque c'est bcp plus simple.
DrWatson S'ils vous plait  :(
DrWatson Pour moi c'est loin, j'ai fait du C++ à mon bts mais je ne travaille pas dans le dev (ça fait 3 ans) donc c'est loin, quelqu'un peut il me filer un code tout simple pour tracer un cercle ?
 
Merci d'avance  :jap:

 

[edtdd]--Message édité par DrWatson--[/edtdd]


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)