Class: HexaPDF::Content::Operator::SetLineWidth

Inherits:
SingleNumericArgumentOperator show all
Defined in:
lib/hexapdf/content/operator.rb

Overview

Implementation of the ‘w’ operator.

See: PDF1.7 s8.4.4

Instance Attribute Summary

Attributes inherited from BaseOperator

#name

Instance Method Summary collapse

Methods inherited from SingleNumericArgumentOperator

#serialize

Methods inherited from BaseOperator

#serialize

Constructor Details

#initializeSetLineWidth

Creates the operator.



206
207
208
# File 'lib/hexapdf/content/operator.rb', line 206

def initialize
  super('w')
end

Instance Method Details

#invoke(processor, width) ⇒ Object

:nodoc:



210
211
212
# File 'lib/hexapdf/content/operator.rb', line 210

def invoke(processor, width) #:nodoc:
  processor.graphics_state.line_width = width
end