Sha256: b7cb493334c585fd0ac7bca7ba7ecaf1348e35ebe1e7f5b7cf6688956aa35844
Contents?: true
Size: 304 Bytes
Versions: 2
Compression:
Stored size: 304 Bytes
Contents
require 'java' # Hide in ImageVoodoo so awt.rb can see this and we will not polute global class ImageVoodoo java_import java.awt.image.BufferedImage # Re-open to add convenience methods. class BufferedImage def each height.times { |j| width.times { |i| yield i, j } } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
image_voodoo-0.9.0 | lib/image_voodoo/awt/core_ext/buffered_image.rb |
image_voodoo-0.8.9 | lib/image_voodoo/awt/core_ext/buffered_image.rb |