10.03.2014 Views

API - Chapitre 03.pdf - IUT d'Arles

API - Chapitre 03.pdf - IUT d'Arles

API - Chapitre 03.pdf - IUT d'Arles

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!