Sha256: 2bd4e49df06c3e474cc107a926193f877286189d0a6016f38961ecf86cafd55a

Contents?: true

Size: 375 Bytes

Versions: 13

Compression:

Stored size: 375 Bytes

Contents

# -*- coding: utf-8 -*-


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

13 entries across 13 versions & 1 rubygems

Version Path
rays-0.1.34 lib/rays/image.rb
rays-0.1.33 lib/rays/image.rb
rays-0.1.32 lib/rays/image.rb
rays-0.1.31 lib/rays/image.rb
rays-0.1.30 lib/rays/image.rb
rays-0.1.29 lib/rays/image.rb
rays-0.1.28 lib/rays/image.rb
rays-0.1.27 lib/rays/image.rb
rays-0.1.26 lib/rays/image.rb
rays-0.1.25 lib/rays/image.rb
rays-0.1.24 lib/rays/image.rb
rays-0.1.23 lib/rays/image.rb
rays-0.1.22 lib/rays/image.rb