Class: HexaPDF::Content::Operator::SetLineWidth
- Inherits:
-
SingleNumericArgumentOperator
- Object
- BaseOperator
- SingleNumericArgumentOperator
- HexaPDF::Content::Operator::SetLineWidth
- 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
Instance Method Summary collapse
-
#initialize ⇒ SetLineWidth
constructor
Creates the operator.
-
#invoke(processor, width) ⇒ Object
:nodoc:.
Methods inherited from SingleNumericArgumentOperator
Methods inherited from BaseOperator
Constructor Details
#initialize ⇒ SetLineWidth
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 |