ImageTransformation

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard

The resize mode

Properties

Link copied to clipboard

Specify in which format you want the image to receive. (Defaults to 'origin', which means the original format)

Link copied to clipboard
var height: Int?

The height of the image

Link copied to clipboard
var quality: Int?

The quality of the image. (Percentage 1-100, defaults to 80)

Link copied to clipboard

The resize mode

Link copied to clipboard
var width: Int?

The width of the image

Functions

Link copied to clipboard
fun contain()

Resizes the image while keeping the aspect ratio to fit a given size.

Link copied to clipboard
fun cover()

Resizes the image while keeping the aspect ratio to fill a given size and crops projecting parts

Link copied to clipboard
fun fill()

Resizes the image without keeping the aspect ratio.

Link copied to clipboard
fun size(width: Int, height: Int)

Changes the size of the image