lib/chunky_png/canvas/operations.rb
# Flips the image vertically in place.
#
# This will flip the image on its vertical axis, e.g. pixels on the left
# will now be pixels on the right. Chaining this method twice will return
# the original canvas. This method will leave the original object intact
# and return a new canvas.
#
# @return [ChunkyPNG::Canvas] Itself, but flipped
# @see #flip_vertically
Flips the image vertically in place.
This will flip the image on its vertical axis, e.g. pixels on the left
will now be pixels on the right. Chaining this method twice will return
the original canvas. This method will leave the original object intact
and return a new canvas.
Flips the image vertically in place . This will flip the image on its vertical axis e . g . pixels on the left will now be pixels on the right . Chaining this method twice will return the original canvas . This method will leave the original object intact and return a new canvas .
def flip_vertically!
        for y in 0...height do
          replace_row!(y, row(y).reverse)
        end
        self
      end
def flip_vertically! for y in 0 ... height do replace_row! ( y , row ( y ) . reverse ) end self end
Flips the image vertically in place.
Flips the image vertically in place .
Itself, but flipped
Itself but flipped
ChunkyPNG::Canvas
see
None