Rotate returns a new image rotated by deg degrees clockwise. Only multiples of 90 (90, 180, 270, plus their negatives) are supported in Phase 1 — that's what the editor's rotation tool (TASK-879) emits, and it sidesteps the resampling cost of arbitrary-angle rotation.
(img image.Image, deg int)
| 46 | // (TASK-879) emits, and it sidesteps the resampling cost of |
| 47 | // arbitrary-angle rotation. |
| 48 | Rotate(img image.Image, deg int) (image.Image, error) |
| 49 | |
| 50 | // Crop returns the rectangular sub-image bounded by `rect`. The |
| 51 | // rectangle is interpreted in the image's coordinate space (origin |
no outgoing calls