Class: Rays::Image

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/rays/image.rb

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

#boundsObject



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

#sizeObject



21
22
23
# File 'lib/rays/image.rb', line 21

def size()
  return width, height
end