Static methods
staticscalePart(bitmap:BitmapData, scale:Float, ?scalePosition:Float):BitmapData
Scales the bitmap at a specific position.
Parameters:
bitmap | The original bitmap to scale. |
|---|---|
scale | The desired scale for the bitmap part (X Scale only). |
scalePosition | The position of where it should scale the bitmap, If null it'll use the middle of the bitmap. |
Returns:
A new BitmapData scaled at the specified position.
staticscalePartByWidth(bitmap:BitmapData, additionalWidth:Float, ?scalePosition:Float):BitmapData
Scales the bitmap by adding a specific width at a specific position.
Parameters:
bitmap | The original bitmap to modify. |
|---|---|
additionalWidth | The desired additional width to add to the bitmap. |
scalePosition | The position of where it should scale the bitmap, If null it'll use the middle of the bitmap. |
Returns:
A new BitmapData scaled at the specified position.