Class: RGhost::Scale
Overview
Scales objects
Class Method Summary collapse
-
.zoom(value = 100) ⇒ Object
Scale proportionally by value in percent ===Example doc.zoom(300) # 300% the same that scale(3,3).
Instance Method Summary collapse
-
#initialize(sx, sy) ⇒ Scale
constructor
Examples doc.scale(1,1) #default document scale.
Methods inherited from PsObject
#<<, #call, #graphic_scope, #ps, #raw, #set, #to_s
Constructor Details
#initialize(sx, sy) ⇒ Scale
Examples
doc.scale(1,1) #default document scale
doc.scale(1,3)
doc.scale(3,3)
17 18 19 |
# File 'lib/rghost/scale.rb', line 17 def initialize(sx,sy) super("#{sx} #{sy} scale") end |