Sha256: a5c7db7e9c688e674b8e962ad0070aa75bdd9337d996884ab1fecd3127c8566f

Contents?: true

Size: 349 Bytes

Versions: 12

Compression:

Stored size: 349 Bytes

Contents

require 'forwardable'
require 'rays/ext'


module Rays


  class Image

    extend Forwardable

    def_delegators :bitmap, :[], :[]=

    def paint(&block)
      painter.paint self, &block
      self
    end

    def size()
      return width, height
    end

    def bounds()
      Bounds.new 0, 0, width, height
    end

  end# Image


end# Rays

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rays-0.1.47 lib/rays/image.rb
rays-0.1.46 lib/rays/image.rb
rays-0.1.45 lib/rays/image.rb
rays-0.1.44 lib/rays/image.rb
rays-0.1.43 lib/rays/image.rb
rays-0.1.42 lib/rays/image.rb
rays-0.1.40 lib/rays/image.rb
rays-0.1.39 lib/rays/image.rb
rays-0.1.38 lib/rays/image.rb
rays-0.1.37 lib/rays/image.rb
rays-0.1.36 lib/rays/image.rb
rays-0.1.35 lib/rays/image.rb