Provides cool stuff for BitmapDatas that have a hardware texture internally.
Static variables
Static methods
staticapplyFilter(bitmap:BitmapData, filter:BitmapFilter):Void
Applies a bitmap filter to a bitmap immediately. The bitmap filter may refer the bitmap itself as a shader input.
Parameters:
bitmap | the bitmap data |
|---|---|
filter | the bitmap filter |
staticcopy(dst:BitmapData, src:BitmapData):Void
Copies the content of src to dst. The destination bitmap dst will be resized
so that it has the same size as src.
Parameters:
dst | the destination bitmap |
|---|---|
src | the source bitmap |
staticcreate(width:Int, height:Int, format:Context3DTextureFormat = BGRA):Null<FixedBitmapData>
Creates a bitmap with a hardware texture.
Parameters:
width | the width |
|---|---|
height | the height |
format | the format if the internal texture |
Returns:
the bitmap
staticresize(bitmap:BitmapData, width:Int, height:Int):Void
Resizes the bitmap.
Parameters:
bitmap | the bitmap data |
|---|---|
width | the width |
height | the height |
staticresizeTexture(texture:TextureBase, width:Int, height:Int):Void
Resizes the texture.
Parameters:
texture | the texture |
|---|---|
width | the width |
height | the height |