Class: HexaPDF::Content::Operator::SetStrokingColor

Inherits:
BaseOperator
  • Object
show all
Defined in:
lib/hexapdf/content/operator.rb

Overview

Implementation of the ‘SC’ and ‘SCN’ operator.

See: PDF2.0 s8.6.8

Instance Attribute Summary

Attributes inherited from BaseOperator

#name

Instance Method Summary collapse

Methods inherited from BaseOperator

#initialize, #serialize

Constructor Details

This class inherits a constructor from HexaPDF::Content::Operator::BaseOperator

Instance Method Details

#invoke(processor, *operands) ⇒ Object

:nodoc:



396
397
398
399
# File 'lib/hexapdf/content/operator.rb', line 396

def invoke(processor, *operands) #:nodoc:
  processor.graphics_state.stroke_color =
    processor.graphics_state.stroke_color.color_space.prenormalized_color(*operands)
end