Sha256: 44ee347ebf589edc1c36b3f84bfa132632215b43bd0c6edd8bc20bcb2c50a3ef

Contents?: true

Size: 378 Bytes

Versions: 7

Compression:

Stored size: 378 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

7 entries across 7 versions & 1 rubygems

Version Path
rays-0.1.21 lib/rays/image.rb
rays-0.1.20 lib/rays/image.rb
rays-0.1.19 lib/rays/image.rb
rays-0.1.18 lib/rays/image.rb
rays-0.1.17 lib/rays/image.rb
rays-0.1.16 lib/rays/image.rb
rays-0.1.15 lib/rays/image.rb