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

@:value({ smoothing : false })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:

smoothing:Bool

Controls whether or not the bitmap is smoothed when scaled.

Available since

1.0.0

.

See also: