Class: RGhost::Graphic

Inherits:
PsObject show all
Defined in:
lib/rghost/graphic.rb

Overview

Creates a new graphic state between gsave and grestore postscript primitives. Example

doc=Document.new
doc.graphic do
  set LineWidth.new(0)
  set Line.lineto(5,7)
end

Instance Method Summary collapse

Methods inherited from PsObject

#<<, #call, #graphic_scope, #initialize, #raw, #set, #to_s

Constructor Details

This class inherits a constructor from RGhost::PsObject

Instance Method Details

#psObject


13
14
15
# File 'lib/rghost/graphic.rb', line 13

def ps
    "gsave #{super} grestore"
end