ImageOptions

data class ImageOptions(val pixelWidth: Int? = null, val pixelHeight: Int? = null, val colorMode: ColorMode? = null, val quality: Int? = null, val compression: Int? = null, val interlaced: Boolean? = null, val translucent: Boolean? = null)

JPG / PNG formatOptions.

Constructors

Link copied to clipboard
constructor(pixelWidth: Int? = null, pixelHeight: Int? = null, colorMode: ColorMode? = null, quality: Int? = null, compression: Int? = null, interlaced: Boolean? = null, translucent: Boolean? = null)

Properties

Link copied to clipboard

ColorMode.

Link copied to clipboard

PNG only, 0..9.

Link copied to clipboard

PNG only.

Link copied to clipboard

PixelHeight; null keeps the document's native height.

Link copied to clipboard

PixelWidth; null keeps the document's native width.

Link copied to clipboard
val quality: Int?

JPG only, 1..100.

Link copied to clipboard

PNG only.