class ChunkyPNG::Image

def initialize(width, height, bg_color = ChunkyPNG::Color::TRANSPARENT, metadata = {})

Other tags:
    See: ChunkyPNG::Canvas#initialize -

Parameters:
  • metadata (Hash) -- A hash of metadata fields and values for this image.
  • bg_color (Integer) -- The background color of the new image.
  • height (Integer) -- The height of the new image.
  • width (Integer) -- The width of the new image.
def initialize(width, height, bg_color = ChunkyPNG::Color::TRANSPARENT, metadata = {})
  super(width, height, bg_color)
  @metadata = metadata
end