Permalink
Browse files

Set matte to false to speed up quantization

  • Loading branch information...
1 parent 6ffec4a commit 7a904c3fe5ce06061f531eb090aa2659487627c5 rmagick committed Jul 31, 2007
Showing with 4 additions and 6 deletions.
  1. +2 −3 doc/ex/matte_floodfill.rb
  2. +2 −3 doc/ex/matte_replace.rb
@@ -6,9 +6,8 @@
img = Image.new(200,200)
img.compression = LZWCompression
-bg = Image.read('plasma:fractal') {
- self.size = '200x200'
- }
+bg = Image.read('plasma:fractal') { self.size = '200x200' }
+bg[0].matte = false
gc = Draw.new
gc.stroke_width(2)
View
@@ -6,9 +6,8 @@
img = Image.new(200,200)
img.compression = LZWCompression
-bg = Image.read('plasma:fractal') {
- self.size = '200x200'
- }
+bg = Image.read('plasma:fractal') { self.size = '200x200' }
+bg[0].matte = false
gc = Draw.new
gc.stroke_width(2)

0 comments on commit 7a904c3

Please sign in to comment.