Method: HexaPDF::Content::Canvas#draw
- Defined in:
- lib/hexapdf/content/canvas.rb
#draw(name, **options) ⇒ Object
:call-seq:
canvas.draw(obj, **) => canvas
canvas.draw(name, **) => canvas
Draws the given graphic object on the canvas.
This is the same as “graphic_object(obj_or_name, **options).draw(self)”.
See #graphic_object for details on the arguments and invocation.
1526 1527 1528 1529 |
# File 'lib/hexapdf/content/canvas.rb', line 1526 def draw(name, **) graphic_object(name, **).draw(self) self end |