class Magick::GradientFill
Public Class Methods
new(x1, y1, x2, y2, start_color, end_color)
click to toggle source
# File lib/rmagick4j/gradient_fill.rb, line 9 def initialize(x1, y1, x2, y2, start_color, end_color) @fill = Magick4J.GradientFill.new(x1, y1, x2, y2, Magick4J.ColorDatabase.queryDefault(start_color), Magick4J.ColorDatabase.queryDefault(end_color)) end
Public Instance Methods
fill(image)
click to toggle source
# File lib/rmagick4j/gradient_fill.rb, line 5 def fill(image) @fill.fill(image._image) end