class ChunkyPNG::Canvas

def initialize_copy(other)

Parameters:
  • other (ChunkyPNG::Canvas) -- The canvas to duplicate
def initialize_copy(other)
  @width, @height = other.width, other.height
  @pixels = other.pixels.dup
end