rmagick 1.8.3 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rmagick might be problematic. Click here for more details.
- data/ChangeLog +5 -0
- data/README.html +8 -8
- data/README.txt +6 -6
- data/configure +12 -11
- data/configure.ac +2 -2
- data/doc/draw.html +10 -10
- data/doc/ex/InitialCoords.rb +1 -2
- data/doc/ex/NewCoordSys.rb +1 -2
- data/doc/ex/OrigCoordSys.rb +1 -2
- data/doc/ex/PreserveAspectRatio.rb +4 -5
- data/doc/ex/RotateScale.rb +1 -2
- data/doc/ex/Skew.rb +1 -2
- data/doc/ex/Use01.rb +3 -4
- data/doc/ex/Use02.rb +3 -4
- data/doc/ex/Use03.rb +3 -4
- data/doc/ex/ViewBox.rb +1 -2
- data/doc/ex/arcs01.rb +2 -3
- data/doc/ex/arcs02.rb +3 -4
- data/doc/ex/baseline_shift01.rb +1 -2
- data/doc/ex/circle01.rb +2 -3
- data/doc/ex/cubic01.rb +2 -3
- data/doc/ex/cubic02.rb +2 -3
- data/doc/ex/ellipse01.rb +2 -3
- data/doc/ex/evenodd.rb +3 -4
- data/doc/ex/font_styles.rb +1 -2
- data/doc/ex/group.rb +3 -4
- data/doc/ex/image.rb +1 -2
- data/doc/ex/line01.rb +2 -3
- data/doc/ex/nested_rvg.rb +2 -3
- data/doc/ex/nonzero.rb +3 -4
- data/doc/ex/polygon01.rb +2 -3
- data/doc/ex/polyline01.rb +2 -3
- data/doc/ex/quad01.rb +2 -3
- data/doc/ex/rect01.rb +2 -3
- data/doc/ex/rect02.rb +2 -3
- data/doc/ex/rvg_clippath.rb +3 -4
- data/doc/ex/rvg_linecap.rb +2 -3
- data/doc/ex/rvg_linejoin.rb +2 -3
- data/doc/ex/rvg_opacity.rb +1 -2
- data/doc/ex/rvg_pattern.rb +3 -4
- data/doc/ex/rvg_stroke_dasharray.rb +1 -2
- data/doc/ex/stegano.rb +23 -7
- data/doc/ex/stroke_fill.rb +1 -2
- data/doc/ex/text01.rb +2 -3
- data/doc/ex/text_styles.rb +1 -2
- data/doc/ex/tref01.rb +3 -4
- data/doc/ex/triangle01.rb +2 -3
- data/doc/ex/tspan01.rb +2 -3
- data/doc/ex/tspan02.rb +2 -3
- data/doc/ex/tspan03.rb +2 -3
- data/doc/ex/writing_mode01.rb +2 -3
- data/doc/ex/writing_mode02.rb +2 -3
- data/doc/imageattrs.html +92 -1
- data/doc/info.html +29 -0
- data/doc/magick.html +12 -6
- data/doc/rvgstyle.html +0 -2
- data/ext/RMagick/MANIFEST +1 -1
- data/ext/RMagick/rmagick.h +8 -2
- data/ext/RMagick/rmagick_config.h.in +2 -0
- data/ext/RMagick/rmdraw.c +9 -4
- data/ext/RMagick/rmimage.c +37 -1
- data/ext/RMagick/rminfo.c +34 -1
- data/ext/RMagick/rmmain.c +10 -3
- data/ext/RMagick/rmutil.c +33 -2
- data/lib/RMagick.rb +30 -9
- data/lib/rvg/embellishable.rb +9 -9
- data/lib/rvg/misc.rb +17 -17
- data/lib/rvg/paint.rb +2 -2
- data/lib/rvg/rvg.rb +13 -13
- data/lib/rvg/text.rb +6 -6
- data/rmagick.gemspec +1 -1
- metadata +2 -2
data/ChangeLog
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
RMagick 1.9.0
|
2
|
+
o Added Image#monitor=, Image::Info#monitor=. Deprecated Magick.set_monitor.
|
3
|
+
o Fixed bug #2070, support color names with embedded spaces
|
4
|
+
o Fixed bug #2109, properly scope Magick constants in RVG
|
5
|
+
|
1
6
|
RMagick 1.8.3
|
2
7
|
o Tested with ImageMagick 6.2.3-2
|
3
8
|
o Added comment, delay, dispose, fill, gravity, and label attributes to
|
data/README.html
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<title>RMagick 1.
|
4
|
+
<title>RMagick 1.9.0 README</title>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
6
6
|
<meta name="GENERATOR" content="BlueCloth">
|
7
7
|
</head>
|
8
8
|
<body>
|
9
|
-
<h1>RMagick 1.
|
9
|
+
<h1>RMagick 1.9.0 README</h1>
|
10
10
|
|
11
|
-
<h2>
|
11
|
+
<h2>07/15/05</h2>
|
12
12
|
|
13
13
|
<h2>Table Of Contents</h2>
|
14
14
|
|
@@ -42,7 +42,7 @@ ImageMagick and GraphicsMagick image processing libraries.</p>
|
|
42
42
|
|
43
43
|
<p><strong>Author:</strong> Tim Hunter</p>
|
44
44
|
|
45
|
-
<p><strong>Email:</strong> <a href="&#
|
45
|
+
<p><strong>Email:</strong> <a href="mailto:rmagick@rubyforge.org">rmagick@rubyforge.org</a></p>
|
46
46
|
|
47
47
|
<p><strong>RubyForge:</strong> <a href="http://rubyforge.org/projects/rmagick/">http://rubyforge.org/projects/rmagick/</a></p>
|
48
48
|
|
@@ -218,7 +218,7 @@ addition to the regular options, there are a few RMagick-specific options:</p>
|
|
218
218
|
|
219
219
|
<h4 id="scripts">Running the <code>configure</code> and <code>make</code> scripts</h4>
|
220
220
|
|
221
|
-
<p>De-compress the RMagick-1.
|
221
|
+
<p>De-compress the RMagick-1.9.0.tar.gz archive and enter the top
|
222
222
|
directory. Then type:</p>
|
223
223
|
|
224
224
|
<pre><code>$ ./configure <configuration options>
|
@@ -239,9 +239,9 @@ $ make clean
|
|
239
239
|
|
240
240
|
<p>When make is running the examples, if you get a message like this:</p>
|
241
241
|
|
242
|
-
<pre><code>/home/you/RMagick-1.
|
242
|
+
<pre><code>/home/you/RMagick-1.9.0/lib/RMagick.rb:11:in `require': libMagick.so.0:
|
243
243
|
cannot open shared object file: No such file or directory -
|
244
|
-
/home/you/RMagick-1.
|
244
|
+
/home/you/RMagick-1.9.0/ext/RMagick/RMagick.so (LoadError)
|
245
245
|
</code></pre>
|
246
246
|
|
247
247
|
<p>you probably do not have the directory in which the ImageMagick or GraphicsMagick
|
@@ -261,7 +261,7 @@ systems, see the documentation for the dynamic loading facility.</p>
|
|
261
261
|
|
262
262
|
<p>When make is running the examples, if you get a message like this:</p>
|
263
263
|
|
264
|
-
<pre><code>hook /home/me/src/RMagick-1.
|
264
|
+
<pre><code>hook /home/me/src/RMagick-1.9.0/./post-setup.rb failed:
|
265
265
|
No such file or directory - "/tmp/rmagick6872.6"
|
266
266
|
</code></pre>
|
267
267
|
|
data/README.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
RMagick 1.
|
1
|
+
RMagick 1.9.0 README
|
2
2
|
================================
|
3
|
-
|
3
|
+
07/15/05
|
4
4
|
--------
|
5
5
|
|
6
6
|
Table Of Contents
|
@@ -188,7 +188,7 @@ addition to the regular options, there are a few RMagick-specific options:
|
|
188
188
|
|
189
189
|
<h4 id="scripts">Running the <code>configure</code> and <code>make</code> scripts</h4>
|
190
190
|
|
191
|
-
De-compress the RMagick-1.
|
191
|
+
De-compress the RMagick-1.9.0.tar.gz archive and enter the top
|
192
192
|
directory. Then type:
|
193
193
|
|
194
194
|
$ ./configure <configuration options>
|
@@ -206,9 +206,9 @@ The message can also refer to "libGraphicsMagick". Typically this message means
|
|
206
206
|
#### Cannot open shared object file
|
207
207
|
When make is running the examples, if you get a message like this:
|
208
208
|
|
209
|
-
/home/you/RMagick-1.
|
209
|
+
/home/you/RMagick-1.9.0/lib/RMagick.rb:11:in `require': libMagick.so.0:
|
210
210
|
cannot open shared object file: No such file or directory -
|
211
|
-
/home/you/RMagick-1.
|
211
|
+
/home/you/RMagick-1.9.0/ext/RMagick/RMagick.so (LoadError)
|
212
212
|
|
213
213
|
you probably do not have the directory in which the ImageMagick or GraphicsMagick
|
214
214
|
library is installed in your load path. An easy way to fix this is to define the
|
@@ -225,7 +225,7 @@ systems, see the documentation for the dynamic loading facility.
|
|
225
225
|
#### No such file or directory - "/tmp/rmagick6872.6"
|
226
226
|
When make is running the examples, if you get a message like this:
|
227
227
|
|
228
|
-
hook /home/me/src/RMagick-1.
|
228
|
+
hook /home/me/src/RMagick-1.9.0/./post-setup.rb failed:
|
229
229
|
No such file or directory - "/tmp/rmagick6872.6"
|
230
230
|
|
231
231
|
you probably do not have a temporary directory environment variable set. Set
|
data/configure
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#! /bin/sh
|
2
2
|
# Guess values for system-dependent variables and create Makefiles.
|
3
|
-
# Generated by GNU Autoconf 2.59 for RMagick 1.
|
3
|
+
# Generated by GNU Autoconf 2.59 for RMagick 1.9.0.
|
4
4
|
#
|
5
5
|
# Report bugs to <rmagick@rubyforge.org>.
|
6
6
|
#
|
@@ -268,9 +268,9 @@ SHELL=${CONFIG_SHELL-/bin/sh}
|
|
268
268
|
|
269
269
|
# Identity of this package.
|
270
270
|
PACKAGE_NAME='RMagick'
|
271
|
-
PACKAGE_TARNAME='RMagick-1.
|
272
|
-
PACKAGE_VERSION='1.
|
273
|
-
PACKAGE_STRING='RMagick 1.
|
271
|
+
PACKAGE_TARNAME='RMagick-1.9.0.tar.gz'
|
272
|
+
PACKAGE_VERSION='1.9.0'
|
273
|
+
PACKAGE_STRING='RMagick 1.9.0'
|
274
274
|
PACKAGE_BUGREPORT='rmagick@rubyforge.org'
|
275
275
|
|
276
276
|
# Factoring default headers for most tests.
|
@@ -779,7 +779,7 @@ if test "$ac_init_help" = "long"; then
|
|
779
779
|
# Omit some internal or obsolete options to make the list less imposing.
|
780
780
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
781
781
|
cat <<_ACEOF
|
782
|
-
\`configure' configures RMagick 1.
|
782
|
+
\`configure' configures RMagick 1.9.0 to adapt to many kinds of systems.
|
783
783
|
|
784
784
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
785
785
|
|
@@ -836,7 +836,7 @@ fi
|
|
836
836
|
|
837
837
|
if test -n "$ac_init_help"; then
|
838
838
|
case $ac_init_help in
|
839
|
-
short | recursive ) echo "Configuration of RMagick 1.
|
839
|
+
short | recursive ) echo "Configuration of RMagick 1.9.0:";;
|
840
840
|
esac
|
841
841
|
cat <<\_ACEOF
|
842
842
|
|
@@ -981,7 +981,7 @@ fi
|
|
981
981
|
test -n "$ac_init_help" && exit 0
|
982
982
|
if $ac_init_version; then
|
983
983
|
cat <<\_ACEOF
|
984
|
-
RMagick configure 1.
|
984
|
+
RMagick configure 1.9.0
|
985
985
|
generated by GNU Autoconf 2.59
|
986
986
|
|
987
987
|
Copyright (C) 2003 Free Software Foundation, Inc.
|
@@ -995,7 +995,7 @@ cat >&5 <<_ACEOF
|
|
995
995
|
This file contains any messages produced by compilers while
|
996
996
|
running configure, to aid debugging if configure makes a mistake.
|
997
997
|
|
998
|
-
It was created by RMagick $as_me 1.
|
998
|
+
It was created by RMagick $as_me 1.9.0, which was
|
999
999
|
generated by GNU Autoconf 2.59. Invocation command line was
|
1000
1000
|
|
1001
1001
|
$ $0 $@
|
@@ -5690,7 +5690,8 @@ done
|
|
5690
5690
|
|
5691
5691
|
|
5692
5692
|
|
5693
|
-
|
5693
|
+
|
5694
|
+
for ac_func in SepiaToneImage SigmoidalContrastImageChannel SetImageProgressMonitor
|
5694
5695
|
do
|
5695
5696
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
5696
5697
|
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
@@ -8453,7 +8454,7 @@ _ASBOX
|
|
8453
8454
|
} >&5
|
8454
8455
|
cat >&5 <<_CSEOF
|
8455
8456
|
|
8456
|
-
This file was extended by RMagick $as_me 1.
|
8457
|
+
This file was extended by RMagick $as_me 1.9.0, which was
|
8457
8458
|
generated by GNU Autoconf 2.59. Invocation command line was
|
8458
8459
|
|
8459
8460
|
CONFIG_FILES = $CONFIG_FILES
|
@@ -8513,7 +8514,7 @@ _ACEOF
|
|
8513
8514
|
|
8514
8515
|
cat >>$CONFIG_STATUS <<_ACEOF
|
8515
8516
|
ac_cs_version="\\
|
8516
|
-
RMagick config.status 1.
|
8517
|
+
RMagick config.status 1.9.0
|
8517
8518
|
configured by $0, generated by GNU Autoconf 2.59,
|
8518
8519
|
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
8519
8520
|
|
data/configure.ac
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
# RMagick configure.ac
|
3
3
|
|
4
|
-
AC_INIT(RMagick, 1.
|
4
|
+
AC_INIT(RMagick, 1.9.0, rmagick@rubyforge.org, RMagick-1.9.0.tar.gz)
|
5
5
|
echo "Configuring ${PACKAGE_STRING}"
|
6
6
|
|
7
7
|
AC_CONFIG_HEADER([ext/RMagick/rmagick_config.h])
|
@@ -143,7 +143,7 @@ AC_CHECK_FUNCS([EvaluateImageChannel PosterizeImage GaussianBlurImageChannel])
|
|
143
143
|
AC_CHECK_FUNCS([ConvolveImageChannel SpliceImage SharpenImageChannel])
|
144
144
|
AC_CHECK_FUNCS([SetImageChannelDepth BlurImageChannel GetMultilineTypeMetrics])
|
145
145
|
AC_CHECK_FUNCS([NormalizeImageChannel UnsharpMaskImageChannel ShadowImage])
|
146
|
-
AC_CHECK_FUNCS([SepiaToneImage SigmoidalContrastImageChannel])
|
146
|
+
AC_CHECK_FUNCS([SepiaToneImage SigmoidalContrastImageChannel SetImageProgressMonitor])
|
147
147
|
|
148
148
|
# What typedefs?
|
149
149
|
|
data/doc/draw.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
5
|
<head>
|
6
6
|
<meta name="generator" content=
|
7
|
-
"HTML Tidy for
|
7
|
+
"HTML Tidy for Mac OS X (vers 1st September 2004), see www.w3.org" />
|
8
8
|
|
9
9
|
<title>RMagick: class Draw</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
@@ -2529,15 +2529,15 @@ draw.stroke_opacity('40%')
|
|
2529
2529
|
<a href="#spec_chars_table">special character sequences</a> in
|
2530
2530
|
the text string.</p>
|
2531
2531
|
|
2532
|
-
<p>
|
2533
|
-
|
2534
|
-
|
2535
|
-
|
2536
|
-
text. You can
|
2537
|
-
|
2538
|
-
|
2539
|
-
|
2540
|
-
|
2532
|
+
<p>Generally it is a good idea to surround the text string with
|
2533
|
+
quotes (""), apostrophes (''), or braces ({}). If the text
|
2534
|
+
string starts with a digit or contains an embedded blank,
|
2535
|
+
quote, or apostrophe, you must do this. ×Magick removes
|
2536
|
+
these characters before drawing the text. You can also escape a
|
2537
|
+
blank, quote, or apostrophe by preceding it with a backslash
|
2538
|
+
("\"). To include a backslash in the text, use two consecutive
|
2539
|
+
backslashes. To include a '%' in the text, use '%%'. See the
|
2540
|
+
examples below.</p>
|
2541
2541
|
|
2542
2542
|
<h4>Arguments</h4>
|
2543
2543
|
|
data/doc/ex/InitialCoords.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'rvg/rvg'
|
2
|
-
include Magick
|
3
2
|
|
4
|
-
rvg = RVG.new(300, 100) do |canvas|
|
3
|
+
rvg = Magick::RVG.new(300, 100) do |canvas|
|
5
4
|
canvas.desc = "Example InitialCoords - SVG's initial coordinate system"
|
6
5
|
canvas.background_fill = 'white'
|
7
6
|
canvas.g.styles(:fill=>'none', :stroke=>'black', :stroke_width=>3) do |grp|
|
data/doc/ex/NewCoordSys.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'rvg/rvg'
|
2
|
-
include Magick
|
3
2
|
|
4
|
-
rvg = RVG.new(400, 150) do |canvas|
|
3
|
+
rvg = Magick::RVG.new(400, 150) do |canvas|
|
5
4
|
canvas.background_fill = 'white'
|
6
5
|
canvas.desc = 'Example NewCoordSys - New user coordinate system'
|
7
6
|
canvas.g.styles(:fill=>'none', :stroke=>'black', :stroke_width=>3) do |grp|
|
data/doc/ex/OrigCoordSys.rb
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
require 'rvg/rvg'
|
2
|
-
include Magick
|
3
2
|
|
4
|
-
rvg = RVG.new(450, 300) do |canvas|
|
3
|
+
rvg = Magick::RVG.new(450, 300) do |canvas|
|
5
4
|
canvas.desc = 'Example Preserve Aspect Ratio'
|
6
5
|
canvas.background_fill = 'white'
|
7
6
|
|
8
7
|
canvas.rect(448, 298, 1, 1).styles(:fill=>'none', :stroke=>'blue')
|
9
8
|
|
10
9
|
# Define the smiley-face
|
11
|
-
smile = RVG::Group.new do |grp|
|
10
|
+
smile = Magick::RVG::Group.new do |grp|
|
12
11
|
grp.translate(0, 5)
|
13
12
|
grp.circle(10, 15, 15).styles(:fill=>'yellow', :stroke=>'none')
|
14
13
|
grp.circle(1.5, 12, 12).styles(:fill=>'black', :stroke=>'none')
|
@@ -16,11 +15,11 @@ rvg = RVG.new(450, 300) do |canvas|
|
|
16
15
|
grp.path("M10 19 A 8 8 0 0 0 20 19").styles(:stroke=>'black', :stroke_width=>2)
|
17
16
|
end
|
18
17
|
|
19
|
-
viewport1 = RVG::Group.new do |grp|
|
18
|
+
viewport1 = Magick::RVG::Group.new do |grp|
|
20
19
|
grp.rect(49, 29, 0.5, 0.5).styles(:fill => 'none', :stroke => 'blue')
|
21
20
|
end
|
22
21
|
|
23
|
-
viewport2 = RVG::Group.new do |grp|
|
22
|
+
viewport2 = Magick::RVG::Group.new do |grp|
|
24
23
|
grp.rect(29, 39, 0.5, 0.5).styles(:fill=>'black', :stroke=>'red')
|
25
24
|
end
|
26
25
|
|
data/doc/ex/RotateScale.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'rvg/rvg'
|
2
|
-
include Magick
|
3
2
|
|
4
|
-
rvg = RVG.new(400, 120) do |canvas|
|
3
|
+
rvg = Magick::RVG.new(400, 120) do |canvas|
|
5
4
|
canvas.desc = 'Example RotateScale - Rotate and scale transforms'
|
6
5
|
canvas.background_fill = 'white'
|
7
6
|
canvas.g.styles(:fill=>'none', :stroke=>'black', :stroke_width=>3) do |grp|
|
data/doc/ex/Skew.rb
CHANGED
data/doc/ex/Use01.rb
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
require 'rvg/rvg'
|
2
|
-
include Magick
|
3
2
|
|
4
|
-
RVG.dpi = 90
|
3
|
+
Magick::RVG.dpi = 90
|
5
4
|
|
6
|
-
rvg = RVG.new(10.cm, 3.cm).viewbox(0, 0, 100, 30) do |canvas|
|
5
|
+
rvg = Magick::RVG.new(10.cm, 3.cm).viewbox(0, 0, 100, 30) do |canvas|
|
7
6
|
canvas.background_fill = 'white'
|
8
7
|
canvas.desc = "Example Use01 - Simple case of 'use' on a 'rect'"
|
9
|
-
r = RVG::Group.new do |grp|
|
8
|
+
r = Magick::RVG::Group.new do |grp|
|
10
9
|
grp.rect(60, 10)
|
11
10
|
end
|
12
11
|
canvas.rect(99.6, 29.6, 0.1, 0.1).styles(:fill=>'none', :stroke=>'blue', :stroke_width=>0.2)
|
data/doc/ex/Use02.rb
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
require 'rvg/rvg'
|
2
|
-
include Magick
|
3
2
|
|
4
|
-
RVG.dpi = 90
|
3
|
+
Magick::RVG.dpi = 90
|
5
4
|
|
6
|
-
rvg = RVG.new(10.cm, 3.5.cm).viewbox(0, 0, 100, 35) do |canvas|
|
5
|
+
rvg = Magick::RVG.new(10.cm, 3.5.cm).viewbox(0, 0, 100, 35) do |canvas|
|
7
6
|
canvas.background_fill = 'white'
|
8
7
|
canvas.desc = "Example Use02 - Chain 'styles' to 'use'"
|
9
|
-
r = RVG::Group.new do |grp|
|
8
|
+
r = Magick::RVG::Group.new do |grp|
|
10
9
|
grp.rect(60, 10).styles(:fill=>'yellow')
|
11
10
|
end
|
12
11
|
canvas.rect(99.6, 34.6, 0.1, 0.1).styles(:fill=>'none', :stroke=>'blue', :stroke_width=>0.2)
|
data/doc/ex/Use03.rb
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
require 'rvg/rvg'
|
2
|
-
include Magick
|
3
2
|
|
4
|
-
RVG.dpi = 90
|
3
|
+
Magick::RVG.dpi = 90
|
5
4
|
|
6
|
-
rvg = RVG.new(10.cm, 3.cm).viewbox(0, 0, 100, 30) do |canvas|
|
5
|
+
rvg = Magick::RVG.new(10.cm, 3.cm).viewbox(0, 0, 100, 30) do |canvas|
|
7
6
|
canvas.background_fill = 'white'
|
8
7
|
canvas.desc = "Example Use03 - 'use' with a 'transform' attribute"
|
9
8
|
|
10
|
-
myrect = RVG::Group.new do |grp|
|
9
|
+
myrect = Magick::RVG::Group.new do |grp|
|
11
10
|
grp.rect(60, 10)
|
12
11
|
end
|
13
12
|
canvas.rect(99.6, 29.6, 0.1, 0.1).styles(:fill=>'none', :stroke=>'blue', :stroke_width=>0.2)
|
data/doc/ex/ViewBox.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
require 'rvg/rvg'
|
2
|
-
include Magick
|
3
2
|
|
4
3
|
def example(cols, rows)
|
5
|
-
rvg = RVG.new(cols, rows) do |canvas|
|
4
|
+
rvg = Magick::RVG.new(cols, rows) do |canvas|
|
6
5
|
canvas.background_fill = 'white'
|
7
6
|
canvas.desc = <<-'END_DESC'
|
8
7
|
Example ViewBox - uses the viewBox attribute to automatically create an
|
data/doc/ex/arcs01.rb
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
require 'rvg/rvg'
|
2
|
-
include Magick
|
3
2
|
|
4
|
-
RVG.dpi = 90
|
3
|
+
Magick::RVG.dpi = 90
|
5
4
|
|
6
|
-
rvg = RVG.new(12.cm, 5.25.cm).viewbox(0, 0, 1200, 400) do |canvas|
|
5
|
+
rvg = Magick::RVG.new(12.cm, 5.25.cm).viewbox(0, 0, 1200, 400) do |canvas|
|
7
6
|
canvas.title = "Example arcs01 - arc commands in path data"
|
8
7
|
canvas.desc = <<-END_DESC
|
9
8
|
Picture of a pie chart with two pie wedges and a picture
|
data/doc/ex/arcs02.rb
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
require 'rvg/rvg'
|
2
|
-
include Magick
|
3
2
|
|
4
|
-
RVG.dpi = 90
|
3
|
+
Magick::RVG.dpi = 90
|
5
4
|
|
6
5
|
PathStyles = {:fill=>'none', :stroke=>'red', :stroke_width=>6}
|
7
6
|
BaseEllipsesStyles = {:font_size=>20, :font_family=>'Verdana',:fill=>'none', :stroke=>'#888', :stroke_width=>2}
|
8
7
|
|
9
|
-
rvg = RVG.new(12.cm, (5.25).cm).viewbox(0, 0, 1200, 525) do |canvas|
|
8
|
+
rvg = Magick::RVG.new(12.cm, (5.25).cm).viewbox(0, 0, 1200, 525) do |canvas|
|
10
9
|
canvas.title = "Example arcs02 - arc options in paths"
|
11
10
|
canvas.desc = <<-END_DESC
|
12
11
|
Pictures showing the result of setting
|
@@ -15,7 +14,7 @@ rvg = RVG.new(12.cm, (5.25).cm).viewbox(0, 0, 1200, 525) do |canvas|
|
|
15
14
|
END_DESC
|
16
15
|
canvas.background_fill = 'white'
|
17
16
|
|
18
|
-
base_ellipses = RVG::Group.new.styles(BaseEllipsesStyles) do |base|
|
17
|
+
base_ellipses = Magick::RVG::Group.new.styles(BaseEllipsesStyles) do |base|
|
19
18
|
base.ellipse(100, 50, 125, 125)
|
20
19
|
base.ellipse(100, 50, 225, 75)
|
21
20
|
base.text(35, 70, "Arc start")
|
data/doc/ex/baseline_shift01.rb
CHANGED
data/doc/ex/circle01.rb
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
require 'rvg/rvg'
|
2
|
-
include Magick
|
3
2
|
|
4
|
-
RVG.dpi = 90
|
3
|
+
Magick::RVG.dpi = 90
|
5
4
|
|
6
|
-
rvg = RVG.new(12.cm, 4.cm) do |canvas|
|
5
|
+
rvg = Magick::RVG.new(12.cm, 4.cm) do |canvas|
|
7
6
|
canvas.viewbox(0, 0, 1200, 400)
|
8
7
|
canvas.background_fill = 'white'
|
9
8
|
canvas.desc = "Example circle01 - circle filled with red and stroked with blue"
|
data/doc/ex/cubic01.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'rvg/rvg'
|
2
|
-
include Magick
|
3
2
|
|
4
|
-
RVG.dpi = 90
|
3
|
+
Magick::RVG.dpi = 90
|
5
4
|
|
6
5
|
Border = {:fill=>'none', :stroke=>'blue', :stroke_width=>1}
|
7
6
|
Connect = {:fill=>'none', :stroke=>'#888', :stroke_width=>2}
|
@@ -11,7 +10,7 @@ CtlPoint = {:fill=>'#888', :stroke=>'none'}
|
|
11
10
|
AutoCtlPoint = {:fill=>'none', :stroke=>'blue', :stroke_width=>4}
|
12
11
|
Label = {:font_size=>22, :font_family=>'Verdana'}
|
13
12
|
|
14
|
-
rvg = RVG.new(5.cm, 4.cm).viewbox(0, 0, 500, 400) do |canvas|
|
13
|
+
rvg = Magick::RVG.new(5.cm, 4.cm).viewbox(0, 0, 500, 400) do |canvas|
|
15
14
|
canvas.title = "Example cubic01 - cubic Bezier commands in path data"
|
16
15
|
canvas.desc = <<-END_DESC
|
17
16
|
Picture showing a simple example of path data using both a
|