diff --git a/draw.html b/draw.html index e415490..5f115ba 100644 --- a/draw.html +++ b/draw.html @@ -816,14 +816,14 @@
-draw.inspect » - "stroke red - fill transparent - rectangle 20,20 380,180 - line 200,20 200,180 - line 20,100 380,100 - stroke transparent - fill black" +draw.inspect + #=> "stroke red + # fill transparent + # rectangle 20,20 380,180 + # line 200,20 200,180 + # line 20,100 380,100 + # stroke transparent + # fill black"@@ -2700,12 +2700,12 @@
The text to the right of » is the text that will be drawn.
+The text to the right of #=> is the text that will be drawn.
-gc.text(10,10, '"Hello there!"') » Hello there! -gc.text(10,10, "'What\'s up?'") » What's up? -gc.text(10,10, %q/"What's up?"/) » What's up? -gc.text(10,10, %q/{"What's up?"}/) » "What's up?" +gc.text(10,10, '"Hello there!"') #=> Hello there! +gc.text(10,10, "'What\'s up?'") #=> What's up? +gc.text(10,10, %q/"What's up?"/) #=> What's up? +gc.text(10,10, %q/{"What's up?"}/) #=> "What's up?"diff --git a/ilist.html b/ilist.html index b9a4b6e..0d8c055 100644 --- a/ilist.html +++ b/ilist.html @@ -248,7 +248,7 @@
i = Magick::ImageList.new("images/Button_A.gif", "images/Button_B.gif") -i.length » 2 +i.length #=> 2@@ -271,7 +271,7 @@
ilist.scene = 10 -ilist.scene » 10 +ilist.scene #=> 10@@ -1015,9 +1015,9 @@
i = Magick::ImageList.new("images/Button_A.gif", "images/Button_B.gif") -» [images/Button_A.gif GIF 127x120+0+0 PseudoClass 256c 8-bit 18136b -images/Button_B.gif GIF 127x120+0+0 PseudoClass 256c 8-bit 5157b] -scene=1 +#=> [images/Button_A.gif GIF 127x120+0+0 PseudoClass 256c 8-bit 18136b +# images/Button_B.gif GIF 127x120+0+0 PseudoClass 256c 8-bit 5157b] +# scene=1@@ -1533,8 +1533,8 @@
ilist = Magick::ImageList.new ilist.ping "Button_A.gif" -puts "The image has #{i.columns} columns and #{i.rows} rows." » - The image has 127 columns and 120 rows. +puts "The image has #{i.columns} columns and #{i.rows} rows." +#=> The image has 127 columns and 120 rows.@@ -1789,7 +1789,7 @@
i = Magick::ImageList.new "birthday.png" -s = i.to_blob » a string representing the image. +s = i.to_blob #=> a string representing the image.@@ -1873,13 +1873,15 @@
-cheetah = Magick::Image.ping("Cheetah.jpg") » [Cheetah.jpg JPEG 1024x768 DirectClass 8-bit 101684b] -p cheetah[0].rows » 768 -p cheetah[0].columns » 1024 +cheetah = Magick::Image.ping("Cheetah.jpg") #=> [Cheetah.jpg JPEG 1024x768 DirectClass 8-bit 101684b] +p cheetah[0].rows #=> 768 +p cheetah[0].columns #=> 1024@@ -641,9 +641,10 @@
-animated = Magick::Image.read("animated.gif") » [animated.gif GIF 127x120+0+0 PseudoClass 256c 8-bit 54395b - » animated.gif[1] GIF 127x120+0+0 PseudoClass 256c 8-bit 54395b, - » animated.gif[2] GIF 127x120+0+0 PseudoClass 256c 8-bit 54395b] +animated = Magick::Image.read("animated.gif") +#=> [animated.gif GIF 127x120+0+0 PseudoClass 256c 8-bit 54395b +# animated.gif[1] GIF 127x120+0+0 PseudoClass 256c 8-bit 54395b, +# animated.gif[2] GIF 127x120+0+0 PseudoClass 256c 8-bit 54395b]@@ -3379,10 +3380,10 @@
-f = Magick::Image.read('cbezier1.gif').first » cbezier1.gif GIF 500x350+0+0 PseudoClass 128c 8-bit 177503b -f.colors » 128 -f.compress_colormap! » cbezier1.gif GIF 500x350+0+0 PseudoClass 108c 8-bit 177503b -f.colors » 108 +f = Magick::Image.read('cbezier1.gif').first #=> cbezier1.gif GIF 500x350+0+0 PseudoClass 128c 8-bit 177503b +f.colors #=> 128 +f.compress_colormap! #=> cbezier1.gif GIF 500x350+0+0 PseudoClass 108c 8-bit 177503b +f.colors #=> 108diff --git a/image2.html b/image2.html index 12a2bde..3264927 100644 --- a/image2.html +++ b/image2.html @@ -1352,9 +1352,9 @@
-image.get_exif_by_entry('Make') » [["Make", "Canon"]] -image.get_exif_by_entry("ShutterSpeedValue") » [["ShutterSpeedValue", "189/32"]] -image.get_exif_by_entry() » [["Make", "Canon"], ["ShutterSpeedValue", "189/32"] ...] +image.get_exif_by_entry('Make') #=> [["Make", "Canon"]] +image.get_exif_by_entry("ShutterSpeedValue") #=> [["ShutterSpeedValue", "189/32"]] +image.get_exif_by_entry() #=> [["Make", "Canon"], ["ShutterSpeedValue", "189/32"] ...]@@ -1391,9 +1391,9 @@
-image.get_exif_by_number(271) » {271=>"Canon"} -image.get_exif_by_number(37377) » {37377=>"189/32"} -image.get_exif_by_number() » {271=>"Canon", 37377=>"189/32" ...} +image.get_exif_by_number(271) #=> {271=>"Canon"} +image.get_exif_by_number(37377) #=> {37377=>"189/32"} +image.get_exif_by_number() #=> {271=>"Canon", 37377=>"189/32" ...}@@ -2296,7 +2296,7 @@
f.inspect » "images/Flower_Hat.jpg JPEG 200x250 DirectClass 8-bit 9kb"+
f.inspect #=> "images/Flower_Hat.jpg JPEG 200x250 DirectClass 8-bit 9kb"
-img = Magick::Image.read('ex/images/Flower_Hat.jpg').first » ex/images/Flower_Hat.jpg JPEG 200x250 DirectClass 8-bit 9761b -img.properties » {"comment"=>"File written by Adobe Photoshop\250 4.0"} -img.signature » "485e01ecba1a1f47924d67b887cb07b474f695841733796dfa3c2876965c7e8b" -img.properties » {"signature"=>"485e01ecba1a1f47924d67b887cb07b474f695841733796dfa3c2876965c7e8b", - » "comment"=>"File written by Adobe Photoshop\250 4.0"} +img = Magick::Image.read('ex/images/Flower_Hat.jpg').first #=> ex/images/Flower_Hat.jpg JPEG 200x250 DirectClass 8-bit 9761b +img.properties #=> {"comment"=>"File written by Adobe Photoshop\250 4.0"} +img.signature #=> "485e01ecba1a1f47924d67b887cb07b474f695841733796dfa3c2876965c7e8b" +img.properties +#=> {"signature"=>"485e01ecba1a1f47924d67b887cb07b474f695841733796dfa3c2876965c7e8b", +# "comment"=>"File written by Adobe Photoshop\250 4.0"}@@ -3381,9 +3382,9 @@
-img = Magick::Image.read('ex/images/Flower_Hat.jpg').first » ex/images/Flower_Hat.jpg JPEG 200x250 DirectClass 8-bit 9761b -pixel = img.pixel_color(img.columns/2, img.rows/2) » #<struct Pixel red=216, green=147, blue=106, opacity=0> -img.to_color(pixel) » "#D8936A" +img = Magick::Image.read('ex/images/Flower_Hat.jpg').first #=> ex/images/Flower_Hat.jpg JPEG 200x250 DirectClass 8-bit 9761b +pixel = img.pixel_color(img.columns/2, img.rows/2) #=> #<struct Pixel red=216, green=147, blue=106, opacity=0> +img.to_color(pixel) #=> "#D8936A"diff --git a/info.html b/info.html index ed9343f..9c93d95 100644 --- a/info.html +++ b/info.html @@ -255,7 +255,8 @@
img = Magick::Image.new(10,10) do |options| options['user'] = __FILE__ + ':' + __LINE__.to_s -end » 10x10 DirectClass 16-bit user:test.rb:3 +end +#=> 10x10 DirectClass 16-bit user:test.rb:3@@ -313,7 +314,7 @@
options["tiff", "bits-per-sample"] » 2+
options["tiff", "bits-per-sample"] #=> 2
-p Magick.formats » - {"TIF"=>"*rw+", - "H"=>"*rw-", - "MNG"=>"*rw+", - "NULL"=>"*rw-", - ... - "G"=>"*rw+", - "GIF"=>"*rw+", - "PDB"=>"*rw+"} +p Magick.formats +#=> {"TIF"=>"*rw+", +# "H"=>"*rw-", +# "MNG"=>"*rw+", +# "NULL"=>"*rw-", +# ... +# "G"=>"*rw+", +# "GIF"=>"*rw+", +# "PDB"=>"*rw+"}