Sha256: 7a2ffd532aa36e8baa3c6ef17db3d1fe023a682f3e486865797a1f69c3f2542b
Contents?: true
Size: 379 Bytes
Versions: 1
Compression:
Stored size: 379 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.Graphics2D # Re-open to add convenience methods. class Graphics2D def jtranslate(x, y) java_send :translate, [::Java.int, ::Java.int], x, y end def draw_this_image(image) draw_image image, 0, 0, nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
image_voodoo-0.8.9 | lib/image_voodoo/awt/core_ext/graphics2d.rb |