Provides cool stuff for BitmapDatas that have a hardware texture internally.

Static variables

staticgetCache_cache:Null<{sprite:Sprite, bitmap:Bitmap}>

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

@:nullSafety(Off)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

@:value({ format : BGRA })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

@:nullSafety(Off)staticresizeTexture(texture:TextureBase, width:Int, height:Int):Void

Resizes the texture.

Parameters:

texture

the texture

width

the width

height

the height