Packagefrocessing.bmp
Classpublic class BitmapTintCache

カラー調整した BitmapData を保持する為のクラスです.



Public Methods
 MethodDefined by
  
新しく BitmapTintCache クラスのインスタンスを生成します.
BitmapTintCache
  
dispose(targetSrcImg:BitmapData = null):void
保持しているカラー調整済み BitmapData を dispose します.
BitmapTintCache
  
getTintImage(src:BitmapData, color32:uint):BitmapData
カラー調整した BitmapData を取得します.
BitmapTintCache
Constructor detail
BitmapTintCache()constructor
public function BitmapTintCache()

新しく BitmapTintCache クラスのインスタンスを生成します.

Method detail
dispose()method
public function dispose(targetSrcImg:BitmapData = null):void

保持しているカラー調整済み BitmapData を dispose します.

Parameters
targetSrcImg:BitmapData (default = null) — nullを指定した場合、全てのデータを dispose します.
getTintImage()method 
public function getTintImage(src:BitmapData, color32:uint):BitmapData

カラー調整した BitmapData を取得します.

指定の TintColor に対応した BitmapData が存在しない場合、カラー調整したデータを生成して返します.

Parameters
src:BitmapData
 
color32:uint — tint color

Returns
BitmapData