MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / Rotate

Method Rotate

internal/attachments/processor.go:48–48  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 3

TestProcessor_RotateFunction · 0.95
applyImageTransformFunction · 0.65

Implementers 1

pureGoProcessorinternal/attachments/processor_purego.

Calls

no outgoing calls

Tested by 2

TestProcessor_RotateFunction · 0.76