module FN::PDF::Node::Invert

Public Instance Methods

visit(struct, debug = false) click to toggle source
# File lib/fn/pdf/node/invert.rb, line 26
def visit(struct, debug = false)
  struct.save
  struct.translate self["x"].to_f + self["x2"].to_f, self["y"].to_f + self["y2"].to_f
  struct.rotate 180
  visit_children(struct, debug)
  struct.restore
end