Reflecting an Image Across an Axis
A reflection reverses one coordinate across a declared axis while preserving the other. The index mapping depends on width or height.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace a horizontal reversal
In a width-five image with zero-based columns, column one maps to \(5-1-1=3\). The center column two stays fixed. See zero-based indexing.
Check an even size
At width four the midline lies between columns one and two. Each maps to the other. Use adjacent positions to see why even width has no fixed center column.[1][2]