ImageBuilder

class ImageBuilder(image: Image)

Background image configurator class.

Constructors

Link copied to clipboard
constructor(image: Image)

Properties

Link copied to clipboard
var position: BackgroundPosition?

The position to use. If null, defaults to BackgroundPosition.DEFAULT.

Link copied to clipboard
var repeat: BackgroundRepeat?

The repeat for the x and y axis. If null, this value defaults to BackgroundRepeat.REPEAT.

Link copied to clipboard
var repeatX: BackgroundRepeat?

The repeat for the x axis. If null, this value defaults to BackgroundRepeat.REPEAT.

Link copied to clipboard
var repeatY: BackgroundRepeat?

The repeat for the y axis. If null, this value defaults to BackgroundRepeat.REPEAT.

Link copied to clipboard
var size: BackgroundSize?

The size. If null, defaults to BackgroundSize.DEFAULT.

Functions

Link copied to clipboard
fun build(): BackgroundImage

Return background image based on current configuration.