Method: PDF::Writer::Graphics#scale_axis
- Defined in:
- lib/pdf/writer/graphics.rb
#scale_axis(x = 1, y = 1) ⇒ Object
Scale the coordinate system axis by the specified factors.
771 772 773 774 |
# File 'lib/pdf/writer/graphics.rb', line 771 def scale_axis(x = 1, y = 1) add_content("\n%.3f 0 0 %.3f 0 0 cm" % [ x, y ]) self end |