module ChunkyPNG::Canvas::Operations

def flip_horizontally

Returns:
  • (ChunkyPNG::Canvas) - The flipped image
def flip_horizontally
  self.class.new(width, height).tap do |flipped|
    for y in 0...height do
      flipped.replace_row!(height - (y + 1), row(y))
    end
  end
end