Class: RGhost::LineWidth

Inherits:
PsObject show all
Defined in:
lib/rghost/line_width.rb

Overview

Sets the line width parameter in the graphics state.

Instance Method Summary collapse

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

#psObject


24
25
26
# File 'lib/rghost/line_width.rb', line 24

def ps
  "#{@value} setlinewidth "
end