While people often confuse flipping and rotating, they are mathematically distinct 2D affine transformations. Rotating an image by 180 degrees spins every pixel around the center point—meaning a person raising their right hand in a photo still appears on the opposite corner with the same handedness relative to their body. Flipping (mirroring) reflects pixel coordinates across an axis, reversing chirality (handedness) just like a physical mirror.
| Transformation Type | Canvas Matrix Operation | Visual Effect | Primary Real-World Use Case |
|---|---|---|---|
| Flip Horizontal (Left ↔ Right) | translate(W, 0) + scale(-1, 1) |
Mirrors left and right sides across the vertical Y-axis | Fixing unmirrored smartphone selfies, heat-transfer T-shirt printing, and redirecting subject gaze |
| Flip Vertical (Top ↕ Bottom) | translate(0, H) + scale(1, -1) |
Reflects top and bottom across the horizontal X-axis | Water reflection effects, upside-down optical inversion, and 3D UV texture tiling |
| Flip Both Axes (H + V) | translate(W, H) + scale(-1, -1) |
Equivalent to a 180° point inversion across both axes | Inverting upside-down scans or camera mounts without changing aspect ratio |
| 90° / 270° Rotation | rotate(±π/2) + swap W × H |
Turns portrait to landscape without mirroring text | Fixing sideways camera orientation (use our Rotate Image tool) |
Because geometric reflection maps each pixel (x, y) directly to (W - 1 - x, y) or (x, H - 1 - y), the output image keeps the exact same width and height as your source file with zero interpolation blur.