Sha256: 3cb864122621431ab173bcfec0afd0e0fe12ae40555ae10833e2cbb4deb46411
Contents?: true
Size: 472 Bytes
Versions: 6
Compression:
Stored size: 472 Bytes
Contents
# -*- coding: utf-8 -*- require 'forwardable' require 'rays/ext' module Rays class Image extend Forwardable def_delegators :bitmap, :draw_string, :[], :[]= def paint (&block) painter.begin self, &block self end def size () return width, height end def bounds () Bounds.new 0, 0, *size end def self.load (path, alpha_only = false) load_image path, alpha_only end end# Image end# Rays
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
rays-0.1.12 | lib/rays/image.rb |
rays-0.1.11 | lib/rays/image.rb |
rays-0.1.10 | lib/rays/image.rb |
rays-0.1.9 | lib/rays/image.rb |
rays-0.1.8 | lib/rays/image.rb |
rays-0.1.7 | lib/rays/image.rb |