首頁 > Flash > BitmapData.setVector

BitmapData.setVector

2009年7月27日 admin 發表評論 閱讀評論

http://webr3.org/blog/haxe/bitmapdata-vectors-bytearrays-and-optimization/

最近才知道,在 FP10 當中

BitmapData新增了幾個Method: getVector and setVector

而最近又剛好在做跟粒子有關的特效,效能方面一直是很大的問題

直到找到這篇文章,

裡面詳細的紀綠了各種狀況下 ( getPixels, setPixels, getVector, setVector)的效能比較

看來在FP10 當中使用Vector是必要的啊 !

// Someone ask me to write in English , so here it is !

Recently, i’ve been working on some particles effects,

the performance issue has always been a problem , and i’ve just learned that in the Flash Player 10

they have added some new features to the BitmapData class : getVector and setVector,

as i’m wondering what’s the difference between the old getPixels, setPixel and the new getVector, setVector,

i found this post, it’s really helpful , enjoy!

Categories: Flash Tags: ,
  1. 目前尚無任何的評論。
  1. 目前尚無任何 trackbacks 和 pingbacks。