rotateImageElement function

CanvasElement rotateImageElement(
  1. ImageElement image, [
  2. dynamic angleDegree = 90
])

Rotates image with angleDegree.

Implementation

CanvasElement rotateImageElement(ImageElement image, [angleDegree = 90]) {
  var w = image.width!;
  var h = image.height!;
  return rotateCanvasImageSource(image, w, h, angleDegree);
}