rotateFromNaturalOrientation

fun Size.rotateFromNaturalOrientation(context: Context, @IntRange(from = 0, to = 359) rotationDegrees: Int): Size

Rotates a Size according to device natural orientation.