cropPlatformImage

actual fun cropPlatformImage(image: PlatformBitmapImage, x: Int, y: Int, width: Int, height: Int): PlatformBitmapImage(source)

Android implementation of image crop using Bitmap APIs.

expect fun cropPlatformImage(image: PlatformBitmapImage, x: Int, y: Int, width: Int, height: Int): PlatformBitmapImage(source)

Crops a platform image to the specified region.

Return

A new cropped image

Parameters

image

The source image

x

Left edge of crop region

y

Top edge of crop region

width

Width of crop region

height

Height of crop region

actual fun cropPlatformImage(image: PlatformBitmapImage, x: Int, y: Int, width: Int, height: Int): PlatformBitmapImage(source)
actual fun cropPlatformImage(image: PlatformBitmapImage, x: Int, y: Int, width: Int, height: Int): PlatformBitmapImage(source)
actual fun cropPlatformImage(image: PlatformBitmapImage, x: Int, y: Int, width: Int, height: Int): PlatformBitmapImage(source)

JVM implementation of image crop using Java2D.

actual fun cropPlatformImage(image: PlatformBitmapImage, x: Int, y: Int, width: Int, height: Int): PlatformBitmapImage(source)