03.07.2013 Views

Guide de reference du langage ActionScript 2.0 - PowWeb

Guide de reference du langage ActionScript 2.0 - PowWeb

Guide de reference du langage ActionScript 2.0 - PowWeb

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Résumé <strong>de</strong> la métho<strong>de</strong><br />

Modificateurs Signature Description<br />

applyFilter(sourceBi<br />

tmap:BitmapData,<br />

sourceRect:Rectangle<br />

, <strong>de</strong>stPoint:Point,<br />

filter:BitmapFilter)<br />

: Number<br />

300 Chapitre 2: Classes <strong>ActionScript</strong><br />

Prend une image source et un objet filtre et génère<br />

l'image filtrée.<br />

clone() : BitmapData Renvoie un nouvel objet BitmapData, clone <strong>de</strong><br />

l'occurrence d'origine avec une copie exacte <strong>du</strong><br />

bitmap contenu.<br />

colorTransform(rect:<br />

Rectangle,<br />

colorTransform:Color<br />

Transform) : Void<br />

copyChannel(sourceBi<br />

tmap:BitmapData,<br />

sourceRect:Rectangle<br />

, <strong>de</strong>stPoint:Point,<br />

sourceChannel:Number<br />

,<br />

<strong>de</strong>stChannel:Number)<br />

: Void<br />

copyPixels(sourceBit<br />

map:BitmapData,<br />

sourceRect:Rectangle<br />

, <strong>de</strong>stPoint:Point,<br />

[alphaBitmap:BitmapD<br />

ata],<br />

[alphaPoint:Point],<br />

[mergeAlpha:Boolean]<br />

) : Void<br />

Définit les valeurs <strong>de</strong> couleur dans une zone spécifiée<br />

d'une image bitmap avec un objet ColorTransform.<br />

Transfère les données <strong>du</strong> canal d'un autre objet<br />

BitmapData ou <strong>de</strong> l'objet actuel vers un canal <strong>de</strong> l'objet<br />

BitmapData actuel.<br />

Met en place une routine rapi<strong>de</strong> permettant <strong>de</strong><br />

manipuler les pixels <strong>de</strong> différentes images sans effets<br />

d'étirement, <strong>de</strong> rotation ou <strong>de</strong> couleur.<br />

dispose() : Void Libère la mémoire utilisée pour stocker l'objet<br />

BitmapData.

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

Saved successfully!

Ooh no, something went wrong!