Class: HexaPDF::Content::Operator::SetDeviceGrayStrokingColor
- Inherits:
-
SingleNumericArgumentOperator
- Object
- BaseOperator
- SingleNumericArgumentOperator
- HexaPDF::Content::Operator::SetDeviceGrayStrokingColor
- 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 ⇒ SetDeviceGrayStrokingColor
constructor
:nodoc:.
-
#invoke(processor, gray) ⇒ Object
:nodoc:.
Methods inherited from SingleNumericArgumentOperator
Methods inherited from BaseOperator
Constructor Details
#initialize ⇒ SetDeviceGrayStrokingColor
:nodoc:
422 423 424 |
# File 'lib/hexapdf/content/operator.rb', line 422 def initialize #:nodoc: super('G') end |
Instance Method Details
#invoke(processor, gray) ⇒ Object
:nodoc:
426 427 428 429 |
# File 'lib/hexapdf/content/operator.rb', line 426 def invoke(processor, gray) #:nodoc: processor.graphics_state.stroke_color = processor.resources.color_space(:DeviceGray).prenormalized_color(gray) end |