Class: Rays::Image
Instance Method Summary collapse
Instance Method Details
#bitmap(modify = false) ⇒ Object
29 30 31 |
# File 'lib/rays/image.rb', line 29 def bitmap(modify = false) get_bitmap modify end |
#bounds ⇒ Object
25 26 27 |
# File 'lib/rays/image.rb', line 25 def bounds() Bounds.new 0, 0, width, height end |
#paint(&block) ⇒ Object
16 17 18 19 |
# File 'lib/rays/image.rb', line 16 def paint(&block) painter.paint self, &block self end |
#size ⇒ Object
21 22 23 |
# File 'lib/rays/image.rb', line 21 def size() return width, height end |