lib/chunky_png/canvas/operations.rb
# Rotates the image 90 degrees counter-clockwise in place.
#
# This method will change the original canvas. See {#rotate_left} for a
# version that leaves the canvas intact and returns a new rotated canvas
# instead.
#
# @return [ChunkyPNG::Canvas] Itself, but rotated.
Rotates the image 90 degrees counter-clockwise in place.
This method will change the original canvas. See {#rotate_left} for a
version that leaves the canvas intact and returns a new rotated canvas
instead.
Rotates the image 90 degrees counter - clockwise in place . This method will change the original canvas . See { #rotate_left } for a version that leaves the canvas intact and returns a new rotated canvas instead .
def rotate_left!
        new_pixels = []
        (width - 1).downto(0) { |i| new_pixels += column(i) }
        replace_canvas!(height, width, new_pixels)
      end
def rotate_left! new_pixels = [ ] ( width - 1 ) . downto ( 0 ) { | i | new_pixels += column ( i ) } replace_canvas! ( height , width , new_pixels ) end
Rotates the image 90 degrees counter-clockwise in place.
Rotates the image 90 degrees counter - clockwise in place .
Itself, but rotated.
Itself but rotated .
ChunkyPNG::Canvas