Method: HexaPDF::Layout::Frame#draw
- Defined in:
- lib/hexapdf/layout/frame.rb
#draw(canvas, fit_result) ⇒ Object
Draws the box of the given Box::FitResult onto the canvas at the fitted position.
After a box is successfully drawn, the frame’s shape is adjusted to remove the occupied area.
314 315 316 317 |
# File 'lib/hexapdf/layout/frame.rb', line 314 def draw(canvas, fit_result) fit_result.draw(canvas) remove_area(fit_result.mask) end |