Renders BitmapData
in nine slices using the scale9Grid
property.
The following example creates a bitmap with scale9Grid
.
var bitmap = new Scale9Bitmap(Assets.getBitmapData("myBitmap"), new Rectangle(4.0, 4.0, 16.0, 8.0));
Available since
1.0.0
.Constructor
new(bitmapData:BitmapData, scale9Grid:Rectangle, smoothing:Bool = false)
Creates a new Scale9Bitmap
object with the given arguments.
Available since
1.0.0
.Variables
smoothing:Bool
Controls whether or not the bitmap is smoothed when scaled.
Available since
1.0.0
.See also: