Static methods
View on GitHub
staticbounds(bitmap:BitmapData, ?limit:Rectangle):Rectangle
Get bounds of non empty pixels in the bitmap @return
Parameters:
bitmap |
---|
View on GitHub
staticcrop(bitmap:BitmapData):BitmapData
Returns a new bitmap without any empty transperent space on the edges
Parameters:
bitmap | The bitmap to be cropped |
---|
View on GitHub
staticgetMostPresentColor(bmap:BitmapData):FlxColor
Returns the most present color in a Bitmap.
Parameters:
bmap | Bitmap |
---|
Returns:
FlxColor Color that is the most present.
View on GitHub
staticgetMostPresentSaturatedColor(bmap:BitmapData):FlxColor
Returns the most present saturated color in a Bitmap.
Parameters:
bmap | Bitmap |
---|
Returns:
FlxColor Color that is the most present.