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

@:flash.propertybitmapData:BitmapData

The BitmapData object being referenced.

Available since

1.0.0

.

See also:

  • openfl.display.Bitmap.bitmapData

@:flash.propertysmoothing:Bool

Controls whether or not the bitmap is smoothed when scaled.

Available since

1.0.0

.

See also:

  • openfl.display.Bitmap.smoothing

@:flash.propertyuseGraphics:Bool

Controls whether or not the bitmap is drawn with openfl.display.Graphics or with separate Bitmap display objects.

Available since

1.0.0

.