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
bitmapData:BitmapData
The BitmapData
object being referenced.
Available since
1.0.0
.See also:
openfl.display.Bitmap.bitmapData
smoothing:Bool
Controls whether or not the bitmap is smoothed when scaled.
Available since
1.0.0
.See also:
openfl.display.Bitmap.smoothing
useGraphics:Bool
Controls whether or not the bitmap is drawn with
openfl.display.Graphics
or with separate Bitmap
display objects.
Available since
1.0.0
.