module ChunkyPNG::Canvas::Operations
def rotate_left
-
(ChunkyPNG::Canvas)
- The rotated image.
def rotate_left self.class.new(height, width).tap do |rotated| for i in 0...width do rotated.replace_row!(width - (i + 1), column(i)) end end end