Rotate

class Rotate(val degrees: Int) : EffectSpec(source)

Rotate the frame, counter-clockwise.

The rotation is baked into the pixels rather than written as container metadata. Source orientation is corrected automatically, so this is deliberate rotation on top of that.

Constructors

Link copied to clipboard
constructor(degrees: Int)

Properties

Link copied to clipboard
Link copied to clipboard

Degrees counter-clockwise. A multiple of 90 turns the frame exactly. Any other angle turns the picture about its centre and grows the frame to the bounding box turnedFrame answers, with black in the corners the picture leaves, and the browser refuses one.

Link copied to clipboard
open override val id: String
Link copied to clipboard
open val isInert: Boolean
Link copied to clipboard
Link copied to clipboard
open val scope: EffectScope
Link copied to clipboard
open override val stage: EffectStage