Permalink
Browse files

Fix example so it will work "out of the box" on Windows

  • Loading branch information...
1 parent a372238 commit bb192aeb5e0f64a743e1c2489cd4c8539d10f880 rmagick committed Jul 25, 2006
Showing with 6 additions and 8 deletions.
  1. +1 −1 examples/import_export.rb
  2. +2 −2 examples/pattern_fill.rb
  3. +2 −4 examples/rotating_text.rb
  4. +1 −1 examples/thumbnail.rb
@@ -27,5 +27,5 @@
exit
end
-copy.display
+copy.write("copy.gif")
exit
View
@@ -13,7 +13,7 @@
This example demonstrates the PATTERN: image format, which is
new in ImageMagick 5.5.7. Specify the name of any of the
supported patterns as an argument. For example, try "checkerboard".
-
+
END_INFO
class PatternFill < Magick::TextureFill
@@ -34,5 +34,5 @@ def initialize(name='bricks')
attrs = Image.ping("pattern:#{pattern}").first
tryit = Image.new(10*attrs.columns, 10*attrs.rows, PatternFill.new(pattern))
-tryit.display
+tryit.write("pattern_fill.gif")
exit
@@ -39,9 +39,7 @@
animation.delay = 8
-# ignored if ImageMagick not configured with ZLIB
-animation.compression = ZipCompression
#animation.animate
-puts "...Writing rotating_text.miff"
-animation.write("rotating_text.miff")
+puts "...Writing rotating_text.gif"
+animation.write("rotating_text.gif")
exit
View
@@ -60,6 +60,6 @@
# Finally, center the thumbnail on the gray background.
thumbnail = white_bg.composite(img, CenterGravity, OverCompositeOp)
-thumbnail.display
+thumbnail.write("thumbnail.gif")
exit

0 comments on commit bb192ae

Please sign in to comment.