class Fox::Canvas::ImageShape
Attributes
Public Class Methods
Source
# File lib/fox16/canvas.rb, line 311 def initialize(x, y, image) super(x, y) @image = image end
Calls superclass method
Fox::Canvas::Shape::new
Public Instance Methods
Source
# File lib/fox16/canvas.rb, line 324 def draw(dc) apply_dc(dc) do if selected? dc.lineWidth = 5 dc.drawRectangle(x - 3, y - 3, width + 5, height + 5) end dc.drawImage(image, x, y) end end