Parent

Methods

Files

GD2::Canvas::Text

Public Class Methods

new(font, point, angle, string) click to toggle source
# File lib/gd2/canvas.rb, line 185
def initialize(font, point, angle, string)
  @font = font
  @point = point
  @angle = angle
  @string = string
end

Public Instance Methods

draw(image, color) click to toggle source
# File lib/gd2/canvas.rb, line 192
def draw(image, color)
  @font.draw(image.image_ptr, @point.x, @point.y, @angle, @string, color)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.