Class: HexaPDF::Content::Operator::SetNonStrokingColor

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:



408
409
410
411
# File 'lib/hexapdf/content/operator.rb', line 408

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