Rotates by an arbitrary angle (degrees, clockwise) using the
platform canvas — the same engine @dusrel/image-core uses, here
exposed for direct ImageData work. The output canvas bounds the
rotated image; exposed corners are filled with background
(default transparent). Browser/worker only (needs a 2D canvas);
for exact multiples of 90 degrees prefer the lossless
rotateQuarter() pixel permutation.
Rotates by an arbitrary angle (degrees, clockwise) using the platform canvas — the same engine @dusrel/image-core uses, here exposed for direct ImageData work. The output canvas bounds the rotated image; exposed corners are filled with
background(default transparent). Browser/worker only (needs a 2D canvas); for exact multiples of 90 degrees prefer the lossless rotateQuarter() pixel permutation.