ImageRotate

class ImageRotate(val degrees: Float, val interpolation: Interpolation = Interpolation.BILINEAR) : Transform<PlatformBitmapImage, PlatformBitmapImage> (source)

Rotates an image by the specified degrees.

Usage

val rotate = ImageRotate(90f)
val rotated = rotate.apply(originalImage)

Parameters

degrees

Rotation angle (positive = clockwise)

interpolation

The interpolation method (default: BILINEAR)

Constructors

Link copied to clipboard
constructor(degrees: Float, interpolation: Interpolation = Interpolation.BILINEAR)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun apply(input: PlatformBitmapImage): PlatformBitmapImage

Applies this transformation to the given input.

Link copied to clipboard
open override fun getOutputShape(inputShape: Shape): Shape

Computes the output shape that would result from applying this transform to data with the given input shape.

Link copied to clipboard
open override fun toString(): String