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.

GDI+ définit une couleur ARVB avec la classe Color.<br />

Nb bits<br />

=<br />

8 8 8 Nb bits 8 8 8 8<br />

=<br />

Un pixel RVB<br />

(24 bits)<br />

Un pixel ARVB<br />

(32 bits)<br />

Alpha = 0 : pixel complètement transparent<br />

Alpha = 255 : pixel complètement opaque<br />

0 < Alpha < 255 : pixel plus ou moins translucide<br />

A R V B<br />

Color c1(255, 255, 0, 0); // Rouge opaque<br />

Color c2(128, 0, 255, 0); // Vert à moitié transparent<br />

14

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

Saved successfully!

Ooh no, something went wrong!