module ChunkyPNG::Canvas::Operations
def rotate_180
-
(ChunkyPNG::Canvas)
- The rotated image.
def rotate_180 self.class.new(width, height).tap do |flipped| for y in 0...height do flipped.replace_row!(height - (y + 1), row(y).reverse) end end end