Class: HexaPDF::Content::Operator::SetRenderingIntent
- Inherits:
-
BaseOperator
- Object
- BaseOperator
- HexaPDF::Content::Operator::SetRenderingIntent
- Defined in:
- lib/hexapdf/content/operator.rb
Overview
Implementation of the ‘ri’ operator.
See: PDF2.0 s8.4.4
Instance Attribute Summary
Attributes inherited from BaseOperator
Instance Method Summary collapse
-
#initialize ⇒ SetRenderingIntent
constructor
Creates the operator.
-
#invoke(processor, intent) ⇒ Object
:nodoc:.
-
#serialize(serializer, intent) ⇒ Object
:nodoc:.
Constructor Details
#initialize ⇒ SetRenderingIntent
Creates the operator.
292 293 294 |
# File 'lib/hexapdf/content/operator.rb', line 292 def initialize super('ri') end |
Instance Method Details
#invoke(processor, intent) ⇒ Object
:nodoc:
296 297 298 |
# File 'lib/hexapdf/content/operator.rb', line 296 def invoke(processor, intent) #:nodoc: processor.graphics_state.rendering_intent = intent end |
#serialize(serializer, intent) ⇒ Object
:nodoc:
300 301 302 |
# File 'lib/hexapdf/content/operator.rb', line 300 def serialize(serializer, intent) #:nodoc: "#{serializer.serialize_symbol(intent)} ri\n" end |