module ChunkyPNG::Canvas::Operations

def rotate_right

Returns:
  • (ChunkyPNG::Canvas) - The rotated image
def rotate_right
  self.class.new(height, width).tap do |rotated|
    for i in 0...width do
      rotated.replace_row!(i, column(i).reverse)
    end
  end
end