Sha256: ce4b8d76ad0f621ebb19b3eb08485d8d9be0ed96accba492042d08f4ee0ce298

Contents?: true

Size: 530 Bytes

Versions: 52

Compression:

Stored size: 530 Bytes

Contents

#! /usr/local/bin/ruby -w
require 'RMagick'

# Demonstrate the Draw#text_undercolor method

canvas = Magick::Image.new(250, 100)  {self.background_color ='white'}

gc = Magick::Draw.new

gc.stroke('transparent')
gc.pointsize(16)
gc.gravity(Magick::CenterGravity)

gc.text_undercolor('cyan')
gc.text(0,-20,"text_undercolor('cyan')")

gc.text_undercolor('yellow')
gc.text(0,0,"text_undercolor('yellow')")

gc.text_undercolor('pink')
gc.text(0,20,"text_undercolor('pink')")

gc.draw(canvas)

canvas.write('text_undercolor.gif')
exit

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
rmagick-1.10.1 doc/ex/text_undercolor.rb
rmagick-1.10.0 doc/ex/text_undercolor.rb
rmagick-1.11.0 doc/ex/text_undercolor.rb
rmagick-1.12.0 doc/ex/text_undercolor.rb
rmagick-1.11.1 doc/ex/text_undercolor.rb
rmagick-1.13.0 doc/ex/text_undercolor.rb
rmagick-1.15.0 doc/ex/text_undercolor.rb
rmagick-1.14.1 doc/ex/text_undercolor.rb
rmagick-1.14.0 doc/ex/text_undercolor.rb
rmagick-1.15.1 doc/ex/text_undercolor.rb
rmagick-1.15.10 doc/ex/text_undercolor.rb
rmagick-1.15.15 doc/ex/text_undercolor.rb
rmagick-1.15.13 doc/ex/text_undercolor.rb
rmagick-1.15.12 doc/ex/text_undercolor.rb
rmagick-1.15.11 doc/ex/text_undercolor.rb
rmagick-1.15.14 doc/ex/text_undercolor.rb
rmagick-1.15.17 doc/ex/text_undercolor.rb
rmagick-1.15.16 doc/ex/text_undercolor.rb
rmagick-1.15.2 doc/ex/text_undercolor.rb
rmagick-1.15.3 doc/ex/text_undercolor.rb