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

Create successful ePaper yourself

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

Modificateurs Signature Description<br />

static loadBitmap(id:String<br />

) : BitmapData<br />

merge(sourceBitmap:B<br />

itmapData,<br />

sourceRect:Rectangle<br />

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

redMult:Number,<br />

greenMult:Number,<br />

blueMult:Number,<br />

alphaMult:Number) :<br />

Void<br />

noise(randomSeed:Num<br />

ber, [low:Number],<br />

[high:Number],<br />

[channelOptions:Numb<br />

er],<br />

[grayScale:Boolean])<br />

: Void<br />

paletteMap(sourceBit<br />

map:BitmapData,<br />

sourceRect:Rectangle<br />

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

[redArray:Array],<br />

[greenArray:Array],<br />

[blueArray:Array],<br />

[alphaArray:Array])<br />

: Void<br />

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

Renvoie un nouvel objet BitmapData qui contient une<br />

version bitmap <strong>du</strong> symbole i<strong>de</strong>ntifié par un ID <strong>de</strong><br />

liaison spécifié dans la bibliothèque.<br />

Procè<strong>de</strong> au mélange canal par canal d'une image<br />

source vers une image <strong>de</strong> <strong>de</strong>stination.<br />

Remplit une image avec <strong>de</strong>s pixels représentant un<br />

bruit aléatoire.<br />

Remappe les valeurs <strong>de</strong>s canaux <strong>de</strong> couleur dans une<br />

image recevant jusqu'à quatre tableaux <strong>de</strong> données <strong>de</strong><br />

palette <strong>de</strong> couleurs, un pour chaque canal.<br />

perlinNoise(baseX:Nu Génère une image <strong>de</strong> bruit Perlin.<br />

mber, baseY:Number,<br />

numOctaves:Number,<br />

randomSeed:Number,<br />

stitch:Boolean,<br />

fractalNoise:Boolean<br />

,<br />

[channelOptions:Numb<br />

er],<br />

[grayScale:Boolean],<br />

[offsets:Object]) :<br />

Void

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

Saved successfully!

Ooh no, something went wrong!