Skip to content

Update documents with RMagick v6.0.0 #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions arcpath.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ <h1>arcpath.rb</h1>
gc.stroke('#00cd00')
gc.stroke_width(3)
gc.path('M200,175 l 25,-12.5 ' \
'a12.5,12.5 -15 0,1 25,-12.5 l 25,-12.5 ' \
'a12.5,25 -15 0,1 25,-12.5 l 25,-12.5 ' \
'a12.5,37.5 -15 0,1 25,-12.5 l 25,-12.5 ' \
'a12.5,50 -15 0,1 25,-12.5 l 25,-12.5')
'a12.5,12.5 -15 0,1 25,-12.5 l 25,-12.5 ' \
'a12.5,25 -15 0,1 25,-12.5 l 25,-12.5 ' \
'a12.5,37.5 -15 0,1 25,-12.5 l 25,-12.5 ' \
'a12.5,50 -15 0,1 25,-12.5 l 25,-12.5')

gc.draw imgl
imgl.border!(1, 1, 'lightcyan2')
Expand Down
8 changes: 4 additions & 4 deletions bounding_box.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ <h1>bounding_box.rb</h1>
gc.font_weight(Magick::NormalWeight)
gc.font_style(Magick::NormalStyle)
gc.pointsize(9)
gc.text(bb.x - 15, bb.y - 5, "\'#{bb.x},#{bb.y}\'")
gc.text(bb.x + bb.width - 15, bb.y - 5, "\'#{bb.x + bb.width},#{bb.y}\'")
gc.text(bb.x - 15, bb.y + bb.height + 15, "\'#{bb.x},#{bb.y + bb.height}\'")
gc.text(bb.x + bb.width - 15, bb.y + bb.height + 15, "\'#{bb.x + bb.width},#{bb.y + bb.height}\'")
gc.text(bb.x - 15, bb.y - 5, "'#{bb.x},#{bb.y}'")
gc.text(bb.x + bb.width - 15, bb.y - 5, "'#{bb.x + bb.width},#{bb.y}'")
gc.text(bb.x - 15, bb.y + bb.height + 15, "'#{bb.x},#{bb.y + bb.height}'")
gc.text(bb.x + bb.width - 15, bb.y + bb.height + 15, "'#{bb.x + bb.width},#{bb.y + bb.height}'")

gc.draw(img)

Expand Down
2 changes: 1 addition & 1 deletion channel.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1>channel.rb</h1>
imgs &lt;&lt; img
imgs &lt;&lt; img.channel(Magick::RedChannel)
imgs.cur_image['Label'] = 'RedChannel'
imgs &lt;&lt; img.channel(Magick::GreenChannel)
imgs &lt;&lt; img.channel(Magick::GreenChannel)
imgs.cur_image['Label'] = 'GreenChannel'
imgs &lt;&lt; img.channel(Magick::BlueChannel)
imgs.cur_image['Label'] = 'BlueChannel'
Expand Down
2 changes: 1 addition & 1 deletion colors.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1>colors.rb</h1>
# Create a 200x25 image for each named color.
# Label with the name, RGB values, and compliance type.
Magick.colors do |c|
if c.name !~ /grey/ # omit SVG 'grays'
unless c.name.include?('grey') # omit SVG 'grays'
colors.new_image(200, 25) do |options|
options.background_color = c.color
options.border_color = 'gray50'
Expand Down
4 changes: 2 additions & 2 deletions comtasks.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />

<title>RMagick 5.5.0: Common Tasks</title>
<title>RMagick 6.0.0: Common Tasks</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand All @@ -25,7 +25,7 @@
</head>

<body>
<h6 id="header">RMagick 5.5.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 6.0.0 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="optequiv.html">Prev</a> | <a href="index.html">Contents</a> | <a href="magick.html">Next</a>&nbsp;&raquo;</div>

Expand Down
16 changes: 14 additions & 2 deletions constants.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />

<title>RMagick 5.5.0: Constants</title>
<title>RMagick 6.0.0: Constants</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand Down Expand Up @@ -57,7 +57,7 @@
</head>

<body>
<h6 id="header">RMagick 5.5.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 6.0.0 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="info.html">Prev</a> | <a href="index.html">Contents</a> | <a href="rvgtut.html">Next</a>&nbsp;&raquo;</div>

Expand Down Expand Up @@ -349,6 +349,16 @@ <h3 class="const" id="ChannelType">ChannelType</h3>

<dt>GrayChannel</dt>

<dt>CompositeChannels</dt>

<dt>TrueAlphaChannel</dt>

<dt>RGBChannels</dt>

<dt>GrayChannels</dt>

<dt>SyncChannels</dt>

<dt>AlphaChannel</dt>

<dd>Same as OpacityChannel</dd>
Expand Down Expand Up @@ -1024,6 +1034,8 @@ <h3 class="const" id="DisposeType">DisposeType</h3>
<p>The value of the <a href="imageattrs.html#dispose">dispose</a> attribute.</p>

<dl>
<dt>UnrecognizedDispose</dt>

<dt>UndefinedDispose</dt>

<dd>No disposal specified.</dd>
Expand Down
4 changes: 2 additions & 2 deletions draw.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />

<title>RMagick 5.5.0: class Draw</title>
<title>RMagick 6.0.0: class Draw</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand All @@ -20,7 +20,7 @@
</head>

<body>
<h6 id="header">RMagick 5.5.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 6.0.0 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="image3.html">Prev</a> | <a href="index.html">Contents</a> | <a href="struct.html">Next</a>&nbsp;&raquo;</div>

Expand Down
2 changes: 1 addition & 1 deletion font_styles.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1>font_styles.rb</h1>
end

canvas.g.styles(font_size: 14, font_weight: 'normal', font_style: 'normal') do |grp|
if RUBY_PLATFORM =~ /mswin32/
if RUBY_PLATFORM.include?('mingw')
grp.text(8, 120, ":font_family=&gt;'Courier-New'").styles(font_family: 'Courier-New')
else
grp.text(8, 120, ":font_family=&gt;'Courier'").styles(font_family: 'Courier')
Expand Down
2 changes: 1 addition & 1 deletion get_type_metrics.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h1>get_type_metrics.rb</h1>
ORIGIN_X = 110
ORIGIN_Y = 230
GLYPH = 'g'
FONT = RUBY_PLATFORM =~ /mswin/ ? 'Verdana' : 'Times'
FONT = RUBY_PLATFORM.include?('mingw') ? 'Verdana' : 'Times'

canvas = Magick::Image.new(410, 320, Magick::HatchFill.new('white', 'lightcyan2'))

Expand Down
4 changes: 2 additions & 2 deletions ilist.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />

<title>RMagick 5.5.0: class ImageList</title>
<title>RMagick 6.0.0: class ImageList</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2005 by Timothy P. Hunter" />
Expand All @@ -14,7 +14,7 @@
</head>

<body>
<h6 id="header">RMagick 5.5.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 6.0.0 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="magick.html">Prev</a> | <a href="index.html">Contents</a> | <a href="imageattrs.html">Next</a>&nbsp;&raquo;</div>

Expand Down
2 changes: 1 addition & 1 deletion image.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h1>image.rb</h1>
canvas.background_fill = 'white'
canvas.rect(524, 269).styles(fill: 'none', stroke: 'blue', stroke_width: 1)

hat = ::Magick::Image.read('images/Flower_Hat.jpg').first
hat = Magick::Image.read('images/Flower_Hat.jpg').first

canvas.image(hat, 100, 75, 25, 40).preserve_aspect_ratio('none')
canvas.rect(100, 75, 25, 40).styles(fill: 'none', stroke: 'blue')
Expand Down
4 changes: 2 additions & 2 deletions image1.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />

<title>RMagick 5.5.0: class Image (class methods and instance methods a-d)</title>
<title>RMagick 6.0.0: class Image (class methods and instance methods a-d)</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand Down Expand Up @@ -39,7 +39,7 @@
</head>

<body>
<h6 id="header">RMagick 5.5.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 6.0.0 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="imageattrs.html">Prev</a> | <a href="index.html">Contents</a> | <a href="image2.html">Next</a>&nbsp;&raquo;</div>

Expand Down
4 changes: 2 additions & 2 deletions image2.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />

<title>RMagick 5.5.0: class Image (instance methods e-o)</title>
<title>RMagick 6.0.0: class Image (instance methods e-o)</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand Down Expand Up @@ -41,7 +41,7 @@
</head>

<body>
<h6 id="header">RMagick 5.5.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 6.0.0 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="image1.html">Prev</a> | <a href="index.html">Contents</a> | <a href="image3.html">Next</a>&nbsp;&raquo;</div>

Expand Down
4 changes: 2 additions & 2 deletions image3.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />

<title>RMagick 5.5.0: class Image (instance methods p-w)</title>
<title>RMagick 6.0.0: class Image (instance methods p-w)</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand Down Expand Up @@ -46,7 +46,7 @@
</head>

<body>
<h6 id="header">RMagick 5.5.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 6.0.0 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="image2.html">Prev</a> | <a href="index.html">Contents</a> | <a href="draw.html">Next</a>&nbsp;&raquo;</div>

Expand Down
4 changes: 2 additions & 2 deletions imageattrs.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />

<title>RMagick 5.5.0: class Image (attribute methods)</title>
<title>RMagick 6.0.0: class Image (attribute methods)</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand All @@ -20,7 +20,7 @@
</head>

<body>
<h6 id="header">RMagick 5.5.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 6.0.0 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="ilist.html">Prev</a> | <a href="index.html">Contents</a> | <a href="image1.html">Next</a>&nbsp;&raquo;</div>

Expand Down
4 changes: 2 additions & 2 deletions imusage.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />

<title>RMagick 5.5.0: ImageMagick Conventions</title>
<title>RMagick 6.0.0: ImageMagick Conventions</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand Down Expand Up @@ -64,7 +64,7 @@
</head>

<body>
<h6 id="header">RMagick 5.5.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 6.0.0 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="usage.html">Prev</a> | <a href="index.html">Contents</a> | <a href="optequiv.html">Next</a>&nbsp;&raquo;</div>

Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />

<title>RMagick 5.5.0 User's Guide and Reference</title>
<title>RMagick 6.0.0 User's Guide and Reference</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand Down Expand Up @@ -102,7 +102,7 @@

<p id="magick">
Ruby+ImageMagick<span class="tm">TM</span><br />
Version 5.5.0
Version 6.0.0
</p>

<h1>User's Guide and Reference</h1>
Expand Down Expand Up @@ -277,7 +277,7 @@ <h3>What is RMagick?</h3>
<h3>About this document</h3>

<p>
This document describes Version 5.5.0 of RMagick. It is divided into 4 parts. The first is this page. The second part is a user's guide covering both
This document describes Version 6.0.0 of RMagick. It is divided into 4 parts. The first is this page. The second part is a user's guide covering both
RMagick and ImageMagick usage and conventions. The third part is a reference guide to the ImageList, Image, and Draw classes. This guide includes many
examples. The fourth part covers Ruby Vector Graphics (RVG). RVG is a facade for Draw that provides a high-level API for scalable vector graphics. The RVG
section includes a tutorial and complete reference documentation.
Expand Down
4 changes: 2 additions & 2 deletions info.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />

<title>RMagick 5.5.0: class Image::Info - Optional method arguments</title>
<title>RMagick 6.0.0: class Image::Info - Optional method arguments</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand Down Expand Up @@ -38,7 +38,7 @@
</head>

<body>
<h6 id="header">RMagick 5.5.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 6.0.0 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="struct.html">Prev</a> | <a href="index.html">Contents</a> | <a href="constants.html">Next</a>&nbsp;&raquo;</div>

Expand Down
4 changes: 2 additions & 2 deletions magick.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />

<title>RMagick 5.5.0: module Magick</title>
<title>RMagick 6.0.0: module Magick</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand All @@ -19,7 +19,7 @@
</head>

<body>
<h6 id="header">RMagick 5.5.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 6.0.0 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="comtasks.html">Prev</a> | <a href="index.html">Contents</a> | <a href="ilist.html">Next</a>&nbsp;&raquo;</div>

Expand Down
4 changes: 2 additions & 2 deletions optequiv.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />

<title>RMagick 5.5.0: Magick Command Options and Their Equivalent Methods</title>
<title>RMagick 6.0.0: Magick Command Options and Their Equivalent Methods</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand Down Expand Up @@ -63,7 +63,7 @@
</head>

<body>
<h6 id="header">RMagick 5.5.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 6.0.0 User's Guide and Reference</h6>

<div class="nav">
&laquo; <a href="index.html">Prev</a> | <a href="imusage.html">Contents</a> | <a href="comtasks.html">Next</a>
Expand Down
4 changes: 2 additions & 2 deletions rvg.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />

<title>RMagick 5.5.0: RVG Reference: RVG Class</title>
<title>RMagick 6.0.0: RVG Reference: RVG Class</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand All @@ -22,7 +22,7 @@
</head>

<body>
<h6 id="header">RMagick 5.5.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 6.0.0 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="rvgtut.html">Prev</a> | <a href="index.html">Contents</a> | <a href="rvggroup.html">Next</a>&nbsp;&raquo;</div>

Expand Down
4 changes: 2 additions & 2 deletions rvgclip.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />

<title>RMagick 5.5.0: RVG Reference: RVG::ClipPath Class</title>
<title>RMagick 6.0.0: RVG Reference: RVG::ClipPath Class</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand All @@ -22,7 +22,7 @@
</head>

<body>
<h6 id="header">RMagick 5.5.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 6.0.0 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="rvgpattern.html">Prev</a> | <a href="index.html">Contents</a> | <a href="rvgtext.html">Next</a>&nbsp;&raquo;</div>

Expand Down
4 changes: 2 additions & 2 deletions rvggroup.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />

<title>RMagick 5.5.0: RVG Reference: RVG::Group Class</title>
<title>RMagick 6.0.0: RVG Reference: RVG::Group Class</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand All @@ -22,7 +22,7 @@
</head>

<body>
<h6 id="header">RMagick 5.5.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 6.0.0 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="rvg.html">Prev</a> | <a href="index.html">Contents</a> | <a href="rvgimage.html">Next</a>&nbsp;&raquo;</div>

Expand Down
Loading