Class: ImageVoodoo::Graphics2D

Inherits:
Object
  • Object
show all
Defined in:
lib/image_voodoo/awt/core_ext/graphics2d.rb

Overview

Re-open to add convenience methods.

Instance Method Summary collapse

Instance Method Details

#draw_this_image(image) ⇒ Object



13
14
15
# File 'lib/image_voodoo/awt/core_ext/graphics2d.rb', line 13

def draw_this_image(image)
  draw_image image, 0, 0, nil
end

#jtranslate(x, y) ⇒ Object



9
10
11
# File 'lib/image_voodoo/awt/core_ext/graphics2d.rb', line 9

def jtranslate(x, y)
  java_send :translate, [::Java.int, ::Java.int], x, y
end