module ChunkyPNG::Canvas::Operations
def flip_vertically
-
(ChunkyPNG::Canvas)
- The flipped image
def flip_vertically self.class.new(width, height).tap do |flipped| for x in 0...width do flipped.replace_column!(width - (x + 1), column(x)) end end end