PlatformImage

actual class PlatformImage
expect class PlatformImage
actual class PlatformImage

Constructors

Link copied to clipboard
constructor(bitmap: Bitmap)
constructor(image: Image)

Types

Link copied to clipboard
actual object Companion
expect object Companion
actual object Companion

Properties

Link copied to clipboard
actual val hasAlpha: Boolean
expect val hasAlpha: Boolean
actual val hasAlpha: Boolean
Link copied to clipboard
actual val height: Int
expect val height: Int
actual val height: Int
Link copied to clipboard
actual val width: Int
expect val width: Int
actual val width: Int

Functions

Link copied to clipboard
Link copied to clipboard
actual fun PlatformImage.crop(rect: CropRegion)
expect fun PlatformImage.crop(rect: CropRegion)
actual fun PlatformImage.crop(rect: CropRegion)
Link copied to clipboard
actual fun PlatformImage.detachImageBitmap(): ImageBitmap
expect fun PlatformImage.detachImageBitmap(): ImageBitmap
actual fun PlatformImage.detachImageBitmap(): ImageBitmap
Link copied to clipboard
actual fun PlatformImage.encode(format: ImageFormat, quality: ImageQuality): ByteArray?
expect fun PlatformImage.encode(format: ImageFormat = ImageFormat.WEBP, quality: ImageQuality = ImageQuality.Full): ByteArray?
actual fun PlatformImage.encode(format: ImageFormat, quality: ImageQuality): ByteArray?
Link copied to clipboard
actual fun PlatformImage.thumbnail(longImageThreshold: Float, maxSizeNormal: Int, minSizeLong: Int)
expect fun PlatformImage.thumbnail(longImageThreshold: Float = 3.33333f, maxSizeNormal: Int = 1080, minSizeLong: Int = 3000)
actual fun PlatformImage.thumbnail(longImageThreshold: Float, maxSizeNormal: Int, minSizeLong: Int)