From b94e553883d7664bb7cc72e2e4d811aa367e32fd Mon Sep 17 00:00:00 2001 From: Watson Date: Fri, 3 May 2024 16:35:33 +0900 Subject: [PATCH] Update documents with RMagick v6.0.0 (#19) --- arcpath.rb.html | 8 ++++---- bounding_box.rb.html | 8 ++++---- channel.rb.html | 2 +- colors.rb.html | 2 +- comtasks.html | 4 ++-- constants.html | 16 ++++++++++++++-- draw.html | 4 ++-- font_styles.rb.html | 2 +- get_type_metrics.rb.html | 2 +- ilist.html | 4 ++-- image.rb.html | 2 +- image1.html | 4 ++-- image2.html | 4 ++-- image3.html | 4 ++-- imageattrs.html | 4 ++-- imusage.html | 4 ++-- index.html | 6 +++--- info.html | 4 ++-- magick.html | 4 ++-- optequiv.html | 4 ++-- rvg.html | 4 ++-- rvgclip.html | 4 ++-- rvggroup.html | 4 ++-- rvgimage.html | 4 ++-- rvgpattern.html | 4 ++-- rvgshape.html | 4 ++-- rvgstyle.html | 4 ++-- rvgtext.html | 4 ++-- rvgtspan.html | 4 ++-- rvgtut.html | 4 ++-- rvguse.html | 4 ++-- rvgxform.html | 4 ++-- struct.html | 6 +++--- text.rb.html | 2 +- text_antialias.rb.html | 2 +- usage.html | 4 ++-- view_box.rb.html | 2 +- watermark.rb.html | 6 +----- wet_floor.rb.html | 8 +++----- 39 files changed, 88 insertions(+), 82 deletions(-) diff --git a/arcpath.rb.html b/arcpath.rb.html index a8351fc..dde1617 100644 --- a/arcpath.rb.html +++ b/arcpath.rb.html @@ -33,10 +33,10 @@

arcpath.rb

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') diff --git a/bounding_box.rb.html b/bounding_box.rb.html index 82d939f..7d62410 100644 --- a/bounding_box.rb.html +++ b/bounding_box.rb.html @@ -43,10 +43,10 @@

bounding_box.rb

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) diff --git a/channel.rb.html b/channel.rb.html index 868b40e..e48ba19 100644 --- a/channel.rb.html +++ b/channel.rb.html @@ -19,7 +19,7 @@

channel.rb

imgs << img imgs << img.channel(Magick::RedChannel) imgs.cur_image['Label'] = 'RedChannel' -imgs << img.channel(Magick::GreenChannel) +imgs << img.channel(Magick::GreenChannel) imgs.cur_image['Label'] = 'GreenChannel' imgs << img.channel(Magick::BlueChannel) imgs.cur_image['Label'] = 'BlueChannel' diff --git a/colors.rb.html b/colors.rb.html index bfb383f..2b87775 100644 --- a/colors.rb.html +++ b/colors.rb.html @@ -26,7 +26,7 @@

colors.rb

# 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' diff --git a/comtasks.html b/comtasks.html index da194e9..56c84c1 100644 --- a/comtasks.html +++ b/comtasks.html @@ -4,7 +4,7 @@ - RMagick 5.5.0: Common Tasks + RMagick 6.0.0: Common Tasks @@ -25,7 +25,7 @@ - + diff --git a/constants.html b/constants.html index f1ca59f..ce00edb 100644 --- a/constants.html +++ b/constants.html @@ -4,7 +4,7 @@ - RMagick 5.5.0: Constants + RMagick 6.0.0: Constants @@ -57,7 +57,7 @@ - + @@ -349,6 +349,16 @@

ChannelType

GrayChannel
+
CompositeChannels
+ +
TrueAlphaChannel
+ +
RGBChannels
+ +
GrayChannels
+ +
SyncChannels
+
AlphaChannel
Same as OpacityChannel
@@ -1024,6 +1034,8 @@

DisposeType

The value of the dispose attribute.

+
UnrecognizedDispose
+
UndefinedDispose
No disposal specified.
diff --git a/draw.html b/draw.html index 482290f..95fc53c 100644 --- a/draw.html +++ b/draw.html @@ -4,7 +4,7 @@ - RMagick 5.5.0: class Draw + RMagick 6.0.0: class Draw @@ -20,7 +20,7 @@ - + diff --git a/font_styles.rb.html b/font_styles.rb.html index e1eb062..c732881 100644 --- a/font_styles.rb.html +++ b/font_styles.rb.html @@ -26,7 +26,7 @@

font_styles.rb

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=>'Courier-New'").styles(font_family: 'Courier-New') else grp.text(8, 120, ":font_family=>'Courier'").styles(font_family: 'Courier') diff --git a/get_type_metrics.rb.html b/get_type_metrics.rb.html index 2023b10..c3b2b0e 100644 --- a/get_type_metrics.rb.html +++ b/get_type_metrics.rb.html @@ -38,7 +38,7 @@

get_type_metrics.rb

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')) diff --git a/ilist.html b/ilist.html index 90de41d..c17dd67 100644 --- a/ilist.html +++ b/ilist.html @@ -4,7 +4,7 @@ - RMagick 5.5.0: class ImageList + RMagick 6.0.0: class ImageList @@ -14,7 +14,7 @@ - + diff --git a/image.rb.html b/image.rb.html index d88e4d3..c58cc38 100644 --- a/image.rb.html +++ b/image.rb.html @@ -17,7 +17,7 @@

image.rb

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') diff --git a/image1.html b/image1.html index fd0d109..b6f9954 100644 --- a/image1.html +++ b/image1.html @@ -4,7 +4,7 @@ - RMagick 5.5.0: class Image (class methods and instance methods a-d) + RMagick 6.0.0: class Image (class methods and instance methods a-d) @@ -39,7 +39,7 @@ - + diff --git a/image2.html b/image2.html index e2e3286..66c1665 100644 --- a/image2.html +++ b/image2.html @@ -4,7 +4,7 @@ - RMagick 5.5.0: class Image (instance methods e-o) + RMagick 6.0.0: class Image (instance methods e-o) @@ -41,7 +41,7 @@ - + diff --git a/image3.html b/image3.html index ec0ef01..d52ec20 100644 --- a/image3.html +++ b/image3.html @@ -4,7 +4,7 @@ - RMagick 5.5.0: class Image (instance methods p-w) + RMagick 6.0.0: class Image (instance methods p-w) @@ -46,7 +46,7 @@ - + diff --git a/imageattrs.html b/imageattrs.html index ff60aa9..28e42c3 100644 --- a/imageattrs.html +++ b/imageattrs.html @@ -4,7 +4,7 @@ - RMagick 5.5.0: class Image (attribute methods) + RMagick 6.0.0: class Image (attribute methods) @@ -20,7 +20,7 @@ - + diff --git a/imusage.html b/imusage.html index 88601ce..ebc81c1 100644 --- a/imusage.html +++ b/imusage.html @@ -4,7 +4,7 @@ - RMagick 5.5.0: ImageMagick Conventions + RMagick 6.0.0: ImageMagick Conventions @@ -64,7 +64,7 @@ - + diff --git a/index.html b/index.html index 8d38b71..a735919 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - RMagick 5.5.0 User's Guide and Reference + RMagick 6.0.0 User's Guide and Reference @@ -102,7 +102,7 @@

Ruby+ImageMagickTM
- Version 5.5.0 + Version 6.0.0

User's Guide and Reference

@@ -277,7 +277,7 @@

What is RMagick?

About this document

- 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. diff --git a/info.html b/info.html index cc627fb..bba12ce 100644 --- a/info.html +++ b/info.html @@ -4,7 +4,7 @@ - RMagick 5.5.0: class Image::Info - Optional method arguments + RMagick 6.0.0: class Image::Info - Optional method arguments @@ -38,7 +38,7 @@ -

+ diff --git a/magick.html b/magick.html index 327e6d2..9d50220 100644 --- a/magick.html +++ b/magick.html @@ -4,7 +4,7 @@ - RMagick 5.5.0: module Magick + RMagick 6.0.0: module Magick @@ -19,7 +19,7 @@ - + diff --git a/optequiv.html b/optequiv.html index 9dadc11..c1bdaf6 100644 --- a/optequiv.html +++ b/optequiv.html @@ -4,7 +4,7 @@ - RMagick 5.5.0: Magick Command Options and Their Equivalent Methods + RMagick 6.0.0: Magick Command Options and Their Equivalent Methods @@ -63,7 +63,7 @@ - +