cropToRect

actual suspend fun cropToRect(image: PickedImage, rect: PixelRect): PickedImage

Crops image to the source-pixel rect and returns the cropped bytes (PNG). Powers the interactive cropper, which computes rect from the user's pan/zoom. Returns the original image unchanged if it can't be decoded or the rect is degenerate.

expect suspend fun cropToRect(image: PickedImage, rect: PixelRect): PickedImage

Crops image to the source-pixel rect and returns the cropped bytes (PNG). Powers the interactive cropper, which computes rect from the user's pan/zoom. Returns the original image unchanged if it can't be decoded or the rect is degenerate.

actual suspend fun cropToRect(image: PickedImage, rect: PixelRect): PickedImage

Crops image to the source-pixel rect and returns the cropped bytes (PNG). Powers the interactive cropper, which computes rect from the user's pan/zoom. Returns the original image unchanged if it can't be decoded or the rect is degenerate.

actual suspend fun cropToRect(image: PickedImage, rect: PixelRect): PickedImage

Crops image to the source-pixel rect and returns the cropped bytes (PNG). Powers the interactive cropper, which computes rect from the user's pan/zoom. Returns the original image unchanged if it can't be decoded or the rect is degenerate.

actual suspend fun cropToRect(image: PickedImage, rect: PixelRect): PickedImage

Crops image to the source-pixel rect and returns the cropped bytes (PNG). Powers the interactive cropper, which computes rect from the user's pan/zoom. Returns the original image unchanged if it can't be decoded or the rect is degenerate.

actual suspend fun cropToRect(image: PickedImage, rect: PixelRect): PickedImage

Crops image to the source-pixel rect and returns the cropped bytes (PNG). Powers the interactive cropper, which computes rect from the user's pan/zoom. Returns the original image unchanged if it can't be decoded or the rect is degenerate.