module ChunkyPNG::Canvas::Operations

def flip_horizontally!

Other tags:
    See: #flip_horizontally -

Returns:
  • (ChunkyPNG::Canvas) - Itself, but flipped
def flip_horizontally!
  for y in 0..((height - 1) >> 1) do
    other_y   = height - (y + 1)
    other_row = row(other_y)
    replace_row!(other_y, row(y))
    replace_row!(y, other_row)
  end
  self
end