ImageBuilder

class ImageBuilder(image: Image)

Border image configurator class.

Constructors

Link copied to clipboard
constructor(image: Image)

Properties

Link copied to clipboard
var insets: Insets?

The insets at which to place the border relative to the region. A null value results in Insets.EMPTY.

Link copied to clipboard
Link copied to clipboard
var repeat: BorderRepeat?

The repeat value for the border image in the x and y direction. If null, defaults to BorderRepeat.STRETCH.

Link copied to clipboard
var repeatX: BorderRepeat?

The repeat value for the border image in the x direction. If null, defaults to BorderRepeat.STRETCH.

Link copied to clipboard
var repeatY: BorderRepeat?

The repeat value for the border image in the y direction. If null, defaults to the same value as repeatX.

Link copied to clipboard
var slices: BorderWidths?

The slices for the image. If null, defaults to BorderWidths.DEFAULT.

Link copied to clipboard
var widths: BorderWidths?

The widths of the border in each dimension. A null value results in BorderWidths.EMPTY.

Functions

Link copied to clipboard
fun build(): BorderImage

Return border image based on current configuration.