Class: Pdfrb::Content::Operator::ConcatMatrix

Inherits:
Base
  • Object
show all
Defined in:
lib/pdfrb/content/operators/general.rb

Class Method Summary collapse

Methods inherited from Base

register, serialize

Class Method Details

.invoke(processor, a, b, c, d, e, f) ⇒ Object



25
26
27
28
# File 'lib/pdfrb/content/operators/general.rb', line 25

def self.invoke(processor, a, b, c, d, e, f)
  m = Pdfrb::Model::Matrix.new(a, b, c, d, e, f)
  processor.update_graphics_state(ctm: m * processor.graphics_state.ctm)
end

.nameObject



24
# File 'lib/pdfrb/content/operators/general.rb', line 24

def self.name; "cm"; end