Class: HexaPDF::Content::Operator::SetDeviceGrayNonStrokingColor
- Inherits:
-
SingleNumericArgumentOperator
- Object
- BaseOperator
- SingleNumericArgumentOperator
- HexaPDF::Content::Operator::SetDeviceGrayNonStrokingColor
- Defined in:
- lib/hexapdf/content/operator.rb
Overview
Implementation of the ‘g’ operator.
See: PDF1.7 s8.6.8
Instance Attribute Summary
Attributes inherited from BaseOperator
Instance Method Summary collapse
-
#initialize ⇒ SetDeviceGrayNonStrokingColor
constructor
Creates the operator.
-
#invoke(processor, gray) ⇒ Object
:nodoc:.
Methods inherited from SingleNumericArgumentOperator
Methods inherited from BaseOperator
Constructor Details
#initialize ⇒ SetDeviceGrayNonStrokingColor
Creates the operator.
436 437 438 |
# File 'lib/hexapdf/content/operator.rb', line 436 def initialize super('g') end |
Instance Method Details
#invoke(processor, gray) ⇒ Object
:nodoc:
440 441 442 443 |
# File 'lib/hexapdf/content/operator.rb', line 440 def invoke(processor, gray) #:nodoc: processor.graphics_state.fill_color = processor.resources.color_space(:DeviceGray).color(gray) end |