Screenshot

@JsonClass(generateAdapter = true)
data class Screenshot(val bitmap: Bitmap? = null, @Json(name = "name") val name: String, @Json(name = "extension") val extension: String = BITMAP_FILE_TYPE) : Codable, Scalable<Screenshot>

Constructors

Link copied to clipboard
constructor(bitmap: Bitmap? = null, @Json(name = "name") name: String, @Json(name = "extension") extension: String = BITMAP_FILE_TYPE)

Properties

Link copied to clipboard
val bitmap: Bitmap? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun height(): Int

Returns the height to be used when scaling

Link copied to clipboard
open fun scale(maxWidth: Int, maxHeight: Int): Screenshot

Scale T to fit within the given maxWidth and maxHeight.

open override fun scale(factor: Double): Screenshot

Scale Screenshot using the given factor. Affects: bitmap

Link copied to clipboard
open fun toJSON(): String

Helper method to convert an object to JSON

Link copied to clipboard
open override fun width(): Int

Returns the width to be used when scaling