Class: RGhost::LineWidth
Overview
Sets the line width parameter in the graphics state.
Instance Method Summary collapse
-
#initialize(value = 0.3) ⇒ LineWidth
constructor
Examples The more tiny line doc=Document.new doc.line_width 0 .
- #ps ⇒ Object
Methods inherited from PsObject
#<<, #call, #graphic_scope, #raw, #set, #to_s
Constructor Details
#initialize(value = 0.3) ⇒ LineWidth
Examples The more tiny line doc=Document.new doc.line_width 0
doc.line_width 1
doc.line_width 2
20 21 22 |
# File 'lib/rghost/line_width.rb', line 20 def initialize(value=0.3) @value=value end |
Instance Method Details
#ps ⇒ Object
24 25 26 |
# File 'lib/rghost/line_width.rb', line 24 def ps "#{@value} setlinewidth " end |