API - Chapitre 03.pdf - IUT d'Arles
API - Chapitre 03.pdf - IUT d'Arles
API - Chapitre 03.pdf - IUT d'Arles
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Une fonction GDI+ permet d’utiliser de l’antialiasing lors du tracé de<br />
lignes, courbes, rectangles, ellipses, etc. :<br />
Prototype :<br />
Graphics::SetSmoothingMode(SmoothingMode mode);<br />
Exemple :<br />
graphics.SetSmoothingMode(SmoothingModeAntiAlias);<br />
graphics.DrawEllipse(&crayon, 20, 20, 80, 40);<br />
graphics.SetSmoothingMode(SmoothingModeAntiAlias);<br />
graphics.DrawEllipse(&crayon, 20, 70, 80, 40);<br />
Remarque : L’antialiassage<br />
permet une meilleure qualité<br />
d’affichage mais est plus lent<br />
en raison des calculs<br />
supplémentaires.<br />
31