ImageConfig.Builder

class ImageConfig.Builder


Builder for creating a ImageConfig.

Summary

Public constructors

Public functions

ImageConfig

Create a new ImageConfig with the attached arguments.

ImageConfig.Builder

Sets the aspect ratio of generated images.

ImageConfig.Builder
setImageSize(imageSize: ImageSize)

Sets the size of the generated images.

Public constructors

Builder

Builder()

Public functions

build

fun build(): ImageConfig

Create a new ImageConfig with the attached arguments.

setAspectRatio

fun setAspectRatio(aspectRatio: AspectRatio): ImageConfig.Builder

Sets the aspect ratio of generated images.

setImageSize

fun setImageSize(imageSize: ImageSize): ImageConfig.Builder

Sets the size of the generated images.

Public properties

aspectRatio

var aspectRatioAspectRatio?

imageSize

var imageSizeImageSize?