Class: Rays::Image
Instance Method Summary collapse
Instance Method Details
#bounds ⇒ Object
23 24 25 |
# File 'lib/rays/image.rb', line 23 def bounds() Bounds.new 0, 0, width, height end |
#paint(&block) ⇒ Object
14 15 16 17 |
# File 'lib/rays/image.rb', line 14 def paint(&block) painter.paint self, &block self end |
#size ⇒ Object
19 20 21 |
# File 'lib/rays/image.rb', line 19 def size() return width, height end |