module ChunkyPNG::Canvas::Operations
def rotate_right
-
(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
(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