ImageResize
class ImageResize(val width: Int, val height: Int, val interpolation: Interpolation = Interpolation.BILINEAR) : Transform<PlatformBitmapImage, PlatformBitmapImage> (source)
Resizes an image to the specified dimensions.
Usage
val resize = ImageResize(224, 224, Interpolation.BILINEAR)
val resized = resize.apply(originalImage)Content copied to clipboard
Parameters
width
Target width in pixels
height
Target height in pixels
interpolation
The interpolation method (default: BILINEAR)