Method: Compass::Magick::Type#to_canvas

Defined in:
lib/magick/types.rb

#to_canvas(width, height) ⇒ Canvas

This method is abstract.

Generates a Canvas object.

Parameters:

  • width (Sass::Script::Number)

    The width of the Canvas.

  • height (Sass::Script::Number)

    The height of the Canvas.

Returns:

  • (Canvas)

    The Canvas object which is composed on top of the original image.

Raises:



18
19
20
# File 'lib/magick/types.rb', line 18

def to_canvas(width, height)
  raise AbstractMethod.new("#{self.class} must implement 'to_canvas'")
end