ImageCrop
class ImageCrop(val top: Int = 0, val bottom: Int = 0, val left: Int = 0, val right: Int = 0) : Transform<PlatformBitmapImage, PlatformBitmapImage> (source)
Crops an image by removing pixels from the edges.
Usage
val crop = ImageCrop(top = 10, bottom = 10, left = 10, right = 10)
val cropped = crop.apply(originalImage)Content copied to clipboard
Parameters
top
Pixels to remove from top
bottom
Pixels to remove from bottom
left
Pixels to remove from left
right
Pixels to remove from right