rmagick 1.9.3 → 1.10.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.

Files changed (62) hide show
  1. data/ChangeLog +18 -0
  2. data/README.html +12 -12
  3. data/README.txt +10 -10
  4. data/configure +728 -367
  5. data/configure.ac +134 -69
  6. data/doc/comtasks.html +11 -3
  7. data/doc/constants.html +162 -40
  8. data/doc/draw.html +2 -2
  9. data/doc/ex/crop_resized.rb +10 -0
  10. data/doc/ex/get_type_metrics.rb +26 -22
  11. data/doc/ex/vignette.rb +19 -0
  12. data/doc/ilist.html +0 -5
  13. data/doc/image1.html +219 -49
  14. data/doc/image2.html +115 -47
  15. data/doc/image3.html +105 -23
  16. data/doc/imageattrs.html +4 -23
  17. data/doc/imusage.html +1 -1
  18. data/doc/index.html +8 -9
  19. data/doc/info.html +23 -3
  20. data/doc/magick.html +1 -1
  21. data/doc/rvg.html +1 -1
  22. data/doc/rvgclip.html +1 -1
  23. data/doc/rvggroup.html +1 -1
  24. data/doc/rvgimage.html +1 -1
  25. data/doc/rvgpattern.html +1 -1
  26. data/doc/rvgshape.html +1 -1
  27. data/doc/rvgstyle.html +1 -1
  28. data/doc/rvgtext.html +3 -3
  29. data/doc/rvgtspan.html +1 -1
  30. data/doc/rvgtut.html +119 -101
  31. data/doc/rvguse.html +1 -1
  32. data/doc/rvgxform.html +1 -1
  33. data/doc/struct.html +17 -11
  34. data/doc/usage.html +22 -4
  35. data/examples/histogram.rb +48 -12
  36. data/examples/spinner.rb +49 -0
  37. data/ext/RMagick/MANIFEST +4 -1
  38. data/ext/RMagick/rmagick.h +62 -33
  39. data/ext/RMagick/rmagick_config.h.in +28 -31
  40. data/ext/RMagick/rmdraw.c +14 -6
  41. data/ext/RMagick/rmfill.c +2 -2
  42. data/ext/RMagick/rmilist.c +8 -36
  43. data/ext/RMagick/rmimage.c +370 -97
  44. data/ext/RMagick/rminfo.c +6 -6
  45. data/ext/RMagick/rmmain.c +114 -25
  46. data/ext/RMagick/rmutil.c +98 -35
  47. data/lib/RMagick.rb +17 -2
  48. data/lib/rvg/clippath.rb +2 -2
  49. data/lib/rvg/container.rb +2 -2
  50. data/lib/rvg/describable.rb +2 -2
  51. data/lib/rvg/embellishable.rb +2 -2
  52. data/lib/rvg/misc.rb +3 -3
  53. data/lib/rvg/paint.rb +2 -2
  54. data/lib/rvg/pathdata.rb +2 -2
  55. data/lib/rvg/rvg.rb +2 -2
  56. data/lib/rvg/stretchable.rb +2 -2
  57. data/lib/rvg/stylable.rb +2 -2
  58. data/lib/rvg/text.rb +2 -2
  59. data/lib/rvg/transformable.rb +2 -2
  60. data/lib/rvg/units.rb +2 -2
  61. data/rmagick.gemspec +1 -1
  62. metadata +362 -353
@@ -1,7 +1,7 @@
1
1
 
2
2
  # RMagick configure.ac
3
3
 
4
- AC_INIT(RMagick, 1.9.3, rmagick@rubyforge.org, RMagick-1.9.3.tar.gz)
4
+ AC_INIT(RMagick, 1.10.0, rmagick@rubyforge.org, RMagick-1.10.0.tar.gz)
5
5
  echo "Configuring ${PACKAGE_STRING}"
6
6
 
7
7
  AC_CONFIG_HEADER([ext/RMagick/rmagick_config.h])
@@ -42,6 +42,11 @@ else
42
42
  Magick-config )
43
43
  MAGICKNAME=ImageMagick
44
44
  MAGICKLIB=Magick
45
+ MAGICKVERS=`${MAGICKCONFIG} --version | tr -d .`
46
+ if test $MAGICKVERS -lt 600; then
47
+ MAGICKVERS=`${MAGICKCONFIG} --version`
48
+ AC_MSG_ERROR([Can't install RMagick. You must have ImageMagick 6.0.0 or later installed. Your version of ImageMagick is ${MAGICKVERS}])
49
+ fi
45
50
  ;;
46
51
  GraphicsMagick-config )
47
52
  MAGICKNAME=GraphicsMagick
@@ -82,16 +87,7 @@ AC_CHECK_FUNCS([snprintf])
82
87
  LIBS="${LIBS} `${MAGICKCONFIG} --libs`"
83
88
 
84
89
  # What ImageMagick/GraphicsMagick functions?
85
- AC_CHECK_FUNCS([AdaptiveThresholdImage AppendImageToList LevelImageChannel])
86
- AC_CHECK_FUNCS([ThumbnailImage RemoveFirstImageFromList GetNextImageInList])
87
- AC_CHECK_FUNCS([SetLogFormat XImportImage ExportImagePixels ImportImagePixels])
88
- AC_CHECK_FUNCS([ThresholdImageChannel RandomChannelThresholdImage StripImage])
89
- AC_CHECK_FUNCS([AcquireMagickMemory BlackThresholdImage WhiteThresholdImage])
90
- AC_CHECK_FUNCS([GetMagickInfoArray GetColorInfoArray GetLocaleExceptionMessage])
91
- AC_CHECK_FUNCS([GetMagickGeometry ParseSizeGeometry TintImage GetColorHistogram])
92
- AC_CHECK_FUNCS([GetImageHistogram FuzzyColorCompare GetImageProfile GetNextImageProfile])
93
- AC_CHECK_FUNCS([GetImageChannelDepth GetImageChannelExtrema GetImageChannelMean])
94
- AC_CHECK_FUNCS([CompareImageChannels PreviewImage SetImageColorspace GetNextImageAttribute])
90
+ AC_CHECK_FUNCS([AcquireMagickMemory])
95
91
 
96
92
  # We need to be able to query this later in the configure script, so set a shell variable here
97
93
  # as well as defining a symbol.
@@ -102,19 +98,11 @@ if test "$rm_have_acquirestringinfo" = yes; then
102
98
  AC_DEFINE(HAVE_ACQUIRESTRINGINFO)
103
99
  fi
104
100
 
105
- # We need to be able to query this later in the configure script, so set a shell variable here
106
- # as well as defining a symbol.
107
- AC_CHECK_FUNC(GetImageQuantumDepth,
108
- rm_have_getimagequantumdepth=yes,
109
- rm_have_getimagequantumdepth=no)
110
- if test "$rm_have_getimagequantumdepth" = yes; then
111
- AC_DEFINE(HAVE_GETIMAGEQUANTUMDEPTH)
112
- fi
113
-
114
- AC_CHECK_FUNCS([BilevelImageChannel GammaImageChannel NegateImageChannel])
115
- AC_CHECK_FUNCS([SetImageOption AddDefinitions GrayscalePseudoClassImage])
116
- AC_CHECK_FUNCS([RadialBlurImage RandomThresholdImageChannel SeparateImageChannel])
117
- AC_CHECK_FUNCS([QuantumOperatorRegionImage GetImageStatistics])
101
+ AC_CHECK_FUNCS([AdaptiveThresholdImage AddDefinitions AddNoiseImageChannel BilevelImageChannel])
102
+ AC_CHECK_FUNCS([BlackThresholdImage BlurImageChannel CompareImageChannels ConvolveImageChannel])
103
+ AC_CHECK_FUNCS([EvaluateImageChannel ExportImagePixels FuzzyColorCompare])
104
+ AC_CHECK_FUNCS([GammaImageChannel GaussianBlurImageChannel])
105
+ AC_CHECK_FUNCS([GetColorHistogram GetColorInfoArray])
118
106
 
119
107
  # We need to be able to query these symbols later in the configure script, so set a shell
120
108
  # variable here as well as defining symbols.
@@ -125,13 +113,21 @@ if test "$rm_have_getcolorinfolist" = yes; then
125
113
  AC_DEFINE(HAVE_GETCOLORINFOLIST)
126
114
  fi
127
115
 
128
- AC_CHECK_FUNC(GetTypeInfoList,
129
- rm_have_gettypeinfolist=yes,
130
- rm_have_gettypeinfolist=no)
131
- if test "$rm_have_gettypeinfolist" = yes; then
132
- AC_DEFINE(HAVE_GETTYPEINFOLIST)
116
+ AC_CHECK_FUNCS([GetImageChannelDepth GetImageChannelDistortion])
117
+ AC_CHECK_FUNCS([GetImageChannelExtrema GetImageChannelMean])
118
+ AC_CHECK_FUNCS([GetImageHistogram GetImageProfile])
119
+
120
+ # We need to be able to query this later in the configure script, so set a shell variable here
121
+ # as well as defining a symbol.
122
+ AC_CHECK_FUNC(GetImageQuantumDepth,
123
+ rm_have_getimagequantumdepth=yes,
124
+ rm_have_getimagequantumdepth=no)
125
+ if test "$rm_have_getimagequantumdepth" = yes; then
126
+ AC_DEFINE(HAVE_GETIMAGEQUANTUMDEPTH)
133
127
  fi
134
128
 
129
+ AC_CHECK_FUNCS([GetImageStatistics GetMagickInfoArray])
130
+
135
131
  AC_CHECK_FUNC(GetMagickInfoList,
136
132
  rm_have_getmagickinfolist=yes,
137
133
  rm_have_getmagickinfolist=no)
@@ -139,12 +135,25 @@ if test "$rm_have_getmagickinfolist" = yes; then
139
135
  AC_DEFINE(HAVE_GETMAGICKINFOLIST)
140
136
  fi
141
137
 
142
- AC_CHECK_FUNCS([EvaluateImageChannel PosterizeImage GaussianBlurImageChannel])
143
- AC_CHECK_FUNCS([ConvolveImageChannel SpliceImage SharpenImageChannel])
144
- AC_CHECK_FUNCS([SetImageChannelDepth BlurImageChannel GetMultilineTypeMetrics])
145
- AC_CHECK_FUNCS([NormalizeImageChannel UnsharpMaskImageChannel ShadowImage])
146
- AC_CHECK_FUNCS([SepiaToneImage SigmoidalContrastImageChannel SetImageProgressMonitor])
147
- AC_CHECK_FUNCS([GetImageChannelDistortion ImagesToBlob])
138
+ AC_CHECK_FUNCS([GetMultilineTypeMetrics GetNextImageAttribute GetNextImageProfile])
139
+
140
+ AC_CHECK_FUNC(GetTypeInfoList,
141
+ rm_have_gettypeinfolist=yes,
142
+ rm_have_gettypeinfolist=no)
143
+ if test "$rm_have_gettypeinfolist" = yes; then
144
+ AC_DEFINE(HAVE_GETTYPEINFOLIST)
145
+ fi
146
+
147
+ AC_CHECK_FUNCS([GrayscalePseudoClassImage ImagesToBlob ImportImagePixels])
148
+ AC_CHECK_FUNCS([IsColorSimilar NegateImageChannel NormalizeImageChannel])
149
+ AC_CHECK_FUNCS([ParseSizeGeometry PosterizeImage PreviewImage QuantumOperatorRegionImage])
150
+ AC_CHECK_FUNCS([RadialBlurImage RandomChannelThresholdImage RandomThresholdImageChannel])
151
+ AC_CHECK_FUNCS([SeparateImageChannel SepiaToneImage SetImageBackgroundColor])
152
+ AC_CHECK_FUNCS([SetImageChannelDepth SetImageColorspace SetImageOption])
153
+ AC_CHECK_FUNCS([SetImageProgressMonitor ShadowImage SharpenImageChannel])
154
+ AC_CHECK_FUNCS([SigmoidalContrastImageChannel SpliceImage StripImage])
155
+ AC_CHECK_FUNCS([ThresholdImageChannel TintImage])
156
+ AC_CHECK_FUNCS([UnsharpMaskImageChannel VignetteImage WhiteThresholdImage XImportImage])
148
157
 
149
158
  # What typedefs?
150
159
 
@@ -161,8 +170,7 @@ if test "$rm_have_magickbooleantype" = yes; then
161
170
  AC_DEFINE(HAVE_MAGICKBOOLEANTYPE)
162
171
  fi
163
172
 
164
- AC_CHECK_TYPES([DisposeType,
165
- magick_int64_t,
173
+ AC_CHECK_TYPES([magick_int64_t,
166
174
  magick_uint64_t,
167
175
  ExtendedSignedIntegralType,
168
176
  ExtendedUnsignedIntegralType,
@@ -191,6 +199,13 @@ AC_CHECK_MEMBERS([Image.orientation],,,
191
199
  #endif
192
200
  #include "magick/api.h"])
193
201
 
202
+ AC_CHECK_MEMBERS([ImageInfo.orientation],,,
203
+ [#include <stdio.h>
204
+ #if HAVE_SYS_TYPES_H
205
+ #include <sys/types.h>
206
+ #endif
207
+ #include "magick/api.h"])
208
+
194
209
  AC_CHECK_MEMBERS([Image.quality],,,
195
210
  [#include <stdio.h>
196
211
  #if HAVE_SYS_TYPES_H
@@ -220,80 +235,127 @@ if test "$rm_cv_member_Image_extract_info" = yes; then
220
235
  AC_DEFINE(HAVE_IMAGE_EXTRACT_INFO)
221
236
  fi
222
237
 
223
- AC_CACHE_CHECK(for ImageInfo.number_scenes, rm_cv_member_ImageInfo_number_scenes,
224
- AC_TRY_COMPILE([
238
+ AC_CACHE_CHECK(for HSBColorspace enum value, rm_cv_enum_hsbcolorspace,
239
+ [AC_TRY_COMPILE(
240
+ [#include <stdio.h>
225
241
  #if HAVE_SYS_TYPES_H
226
242
  #include <sys/types.h>
227
243
  #endif
228
- #include <stdio.h>
229
244
  #include "magick/api.h"],
230
- [ImageInfo i; i.number_scenes = 0;],
231
- rm_cv_member_ImageInfo_number_scenes=yes,
232
- rm_cv_member_ImageInfo_number_scenes=no))
233
- if test "$rm_cv_member_ImageInfo_number_scenes" = yes; then
234
- AC_DEFINE(HAVE_IMAGEINFO_NUMBER_SCENES)
245
+ [ColorspaceType x; x = HSBColorspace],
246
+ rm_cv_enum_hsbcolorspace='yes',
247
+ rm_cv_enum_hsbcolorspace='no')])
248
+
249
+ if test "$rm_cv_enum_hsbcolorspace" = yes; then
250
+ AC_DEFINE(HAVE_HSBCOLORSPACE)
235
251
  fi
236
252
 
237
- AC_CACHE_CHECK(for NoCompliance enum value, rm_cv_enum_nocompliance,
253
+ AC_CACHE_CHECK(for CineonLogRGBColorspace enum value, rm_cv_enum_cineonlogrgbcolorspace,
238
254
  [AC_TRY_COMPILE(
239
255
  [#include <stdio.h>
240
256
  #if HAVE_SYS_TYPES_H
241
257
  #include <sys/types.h>
242
258
  #endif
243
259
  #include "magick/api.h"],
244
- [ComplianceType x; x = NoCompliance],
245
- rm_cv_enum_nocompliance='yes',
246
- rm_cv_enum_nocompliance='no')])
260
+ [ColorspaceType x; x = CineonLogRGBColorspace],
261
+ rm_cv_enum_cineonlogrgbcolorspace='yes',
262
+ rm_cv_enum_cineonlogrgbcolorspace='no')])
247
263
 
248
- if test "$rm_cv_enum_nocompliance" = yes; then
249
- AC_DEFINE(HAVE_NOCOMPLIANCE)
264
+ if test "$rm_cv_enum_cineonlogrgbcolorspace" = yes; then
265
+ AC_DEFINE(HAVE_CINEONLOGRGBCOLORSPACE)
250
266
  fi
251
267
 
252
- AC_CACHE_CHECK(for HSLColorspace enum value, rm_cv_enum_hslcolorspace,
268
+ AC_CACHE_CHECK(for LABColorspace enum value, rm_cv_enum_labcolorspace,
253
269
  [AC_TRY_COMPILE(
254
270
  [#include <stdio.h>
255
271
  #if HAVE_SYS_TYPES_H
256
272
  #include <sys/types.h>
257
273
  #endif
258
274
  #include "magick/api.h"],
259
- [ColorspaceType x; x = HSLColorspace],
260
- rm_cv_enum_hslcolorspace='yes',
261
- rm_cv_enum_hslcolorspace='no')])
275
+ [ColorspaceType x; x = LABColorspace],
276
+ rm_cv_enum_labcolorspace='yes',
277
+ rm_cv_enum_labcolorspace='no')])
262
278
 
263
- if test "$rm_cv_enum_hslcolorspace" = yes; then
264
- AC_DEFINE(HAVE_HSLCOLORSPACE)
279
+ if test "$rm_cv_enum_labcolorspace" = yes; then
280
+ AC_DEFINE(HAVE_LABCOLORSPACE)
265
281
  fi
266
282
 
267
- AC_CACHE_CHECK(for HWBColorspace enum value, rm_cv_enum_hwbcolorspace,
283
+ AC_CACHE_CHECK(for Rec601LumaColorspace enum value, rm_cv_enum_rec601lumacolorspace,
268
284
  [AC_TRY_COMPILE(
269
285
  [#include <stdio.h>
270
286
  #if HAVE_SYS_TYPES_H
271
287
  #include <sys/types.h>
272
288
  #endif
273
289
  #include "magick/api.h"],
274
- [ColorspaceType x; x = HWBColorspace],
275
- rm_cv_enum_hwbcolorspace='yes',
276
- rm_cv_enum_hwbcolorspace='no')])
290
+ [ColorspaceType x; x = Rec601LumaColorspace],
291
+ rm_cv_enum_rec601lumacolorspace='yes',
292
+ rm_cv_enum_rec601lumacolorspace='no')])
277
293
 
278
- if test "$rm_cv_enum_hwbcolorspace" = yes; then
279
- AC_DEFINE(HAVE_HWBCOLORSPACE)
294
+ if test "$rm_cv_enum_rec601lumacolorspace" = yes; then
295
+ AC_DEFINE(HAVE_REC601LUMACOLORSPACE)
280
296
  fi
281
297
 
282
- AC_CACHE_CHECK(for HSBColorspace enum value, rm_cv_enum_hsbcolorspace,
298
+ AC_CACHE_CHECK(for Rec601YCbCrColorspace enum value, rm_cv_enum_rec601ycbcrcolorspace,
283
299
  [AC_TRY_COMPILE(
284
300
  [#include <stdio.h>
285
301
  #if HAVE_SYS_TYPES_H
286
302
  #include <sys/types.h>
287
303
  #endif
288
304
  #include "magick/api.h"],
289
- [ColorspaceType x; x = HSBColorspace],
290
- rm_cv_enum_hsbcolorspace='yes',
291
- rm_cv_enum_hsbcolorspace='no')])
305
+ [ColorspaceType x; x = Rec601YCbCrColorspace],
306
+ rm_cv_enum_rec601ycbcrcolorspace='yes',
307
+ rm_cv_enum_rec601ycbcrcolorspace='no')])
292
308
 
293
- if test "$rm_cv_enum_hsbcolorspace" = yes; then
294
- AC_DEFINE(HAVE_HSBCOLORSPACE)
309
+ if test "$rm_cv_enum_rec601ycbcrcolorspace" = yes; then
310
+ AC_DEFINE(HAVE_REC601YCBCRCOLORSPACE)
311
+ fi
312
+
313
+ AC_CACHE_CHECK(for Rec709LumaColorspace enum value, rm_cv_enum_rec709lumacolorspace,
314
+ [AC_TRY_COMPILE(
315
+ [#include <stdio.h>
316
+ #if HAVE_SYS_TYPES_H
317
+ #include <sys/types.h>
318
+ #endif
319
+ #include "magick/api.h"],
320
+ [ColorspaceType x; x = Rec709LumaColorspace],
321
+ rm_cv_enum_rec709lumacolorspace='yes',
322
+ rm_cv_enum_rec709lumacolorspace='no')])
323
+
324
+ if test "$rm_cv_enum_rec709lumacolorspace" = yes; then
325
+ AC_DEFINE(HAVE_REC709LUMACOLORSPACE)
295
326
  fi
296
327
 
328
+ AC_CACHE_CHECK(for Rec709YCbCrColorspace enum value, rm_cv_enum_rec709ycbcrcolorspace,
329
+ [AC_TRY_COMPILE(
330
+ [#include <stdio.h>
331
+ #if HAVE_SYS_TYPES_H
332
+ #include <sys/types.h>
333
+ #endif
334
+ #include "magick/api.h"],
335
+ [ColorspaceType x; x = Rec709YCbCrColorspace],
336
+ rm_cv_enum_rec709ycbcrcolorspace='yes',
337
+ rm_cv_enum_rec709ycbcrcolorspace='no')])
338
+
339
+ if test "$rm_cv_enum_rec709ycbcrcolorspace" = yes; then
340
+ AC_DEFINE(HAVE_REC709YCBCRCOLORSPACE)
341
+ fi
342
+
343
+ AC_CACHE_CHECK(for LogColorspace enum value, rm_cv_enum_logcolorspace,
344
+ [AC_TRY_COMPILE(
345
+ [#include <stdio.h>
346
+ #if HAVE_SYS_TYPES_H
347
+ #include <sys/types.h>
348
+ #endif
349
+ #include "magick/api.h"],
350
+ [ColorspaceType x; x = LogColorspace],
351
+ rm_cv_enum_logcolorspace='yes',
352
+ rm_cv_enum_logcolorspace='no')])
353
+
354
+ if test "$rm_cv_enum_logcolorspace" = yes; then
355
+ AC_DEFINE(HAVE_LOGCOLORSPACE)
356
+ fi
357
+
358
+
297
359
  AC_CACHE_CHECK(for CopyCyanCompositeOp enum value, rm_cv_enum_copycyancompositeop,
298
360
  [AC_TRY_COMPILE(
299
361
  [#include <stdio.h>
@@ -440,6 +502,9 @@ AC_CACHE_CHECK(for QuantumPixel enum value, rm_cv_enum_quantumpixel,
440
502
  [StorageType x; x = QuantumPixel],
441
503
  rm_cv_enum_quantumpixel='yes',
442
504
  rm_cv_enum_quantumpixel='no')])
505
+ if test "$rm_cv_enum_quantumpixel" = yes; then
506
+ AC_DEFINE(HAVE_QUANTUMPIXEL)
507
+ fi
443
508
 
444
509
  AC_CACHE_CHECK(for TransparentVirtualPixelMethod enum value, rm_cv_enum_transparentvirtualpixelmethod,
445
510
  [AC_TRY_COMPILE(
@@ -4,14 +4,14 @@
4
4
  <html xmlns="http://www.w3.org/1999/xhtml">
5
5
  <head>
6
6
  <meta name="generator" content=
7
- "HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
7
+ "HTML Tidy for Linux/x86 (vers 1st December 2004), see www.w3.org" />
8
8
 
9
9
  <title>RMagick: Common Tasks</title>
10
10
  <meta http-equiv="Content-Type" content=
11
11
  "text/html; charset=us-ascii" />
12
12
  <meta name="GENERATOR" content="Quanta Plus" />
13
13
  <meta name="Copyright" content=
14
- "Copyright (C) 2005 by Timothy P. Hunter" />
14
+ "Copyright (C) 2006 by Timothy P. Hunter" />
15
15
  <link rel="stylesheet" type="text/css" href="css/doc.css" />
16
16
  <script type="text/javascript" src="scripts/doc.js">
17
17
  </script>
@@ -194,6 +194,14 @@ thumb.write "thumb.gif"
194
194
  applications when you want to modify an image and then stream it
195
195
  back to the client.</p>
196
196
 
197
+ <p>Use <a href=
198
+ "image2.html#import_pixels">Image#import_pixels</a> to load pixel
199
+ data from a string buffer into an image. The pixel data must be
200
+ in scanline order, right-to-left and top-to-bottom. The data can
201
+ be packed as 8-bit bytes, 16-bit halfwords, 32-bit fullwords, or
202
+ as C floats or doubles. The reciprocal method is <a href=
203
+ "image3.html#export_pixels_to_str">Image#export_pixels_to_str</a>.</p>
204
+
197
205
  <h2 id="gray">Converting a color image to grayscale</h2>
198
206
 
199
207
  <p>Use the <a href=
@@ -248,7 +256,7 @@ img.write("myimage.jpg") { self.quality = 50 }
248
256
  </div>
249
257
  <hr />
250
258
 
251
- <p class="spacer">&nbsp;</p>
259
+ <p class="spacer"> </p>
252
260
 
253
261
  <div class="nav">
254
262
  &laquo; <a href="imusage.html">Prev</a> | <a href=
@@ -4,14 +4,14 @@
4
4
  <html xmlns="http://www.w3.org/1999/xhtml">
5
5
  <head>
6
6
  <meta name="generator" content=
7
- "HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
7
+ "HTML Tidy for Linux/x86 (vers 1st December 2004), see www.w3.org" />
8
8
 
9
9
  <title>RMagick: Constants</title>
10
10
  <meta http-equiv="Content-Type" content=
11
11
  "text/html; charset=us-ascii" />
12
12
  <meta name="GENERATOR" content="Quanta Plus" />
13
13
  <meta name="Copyright" content=
14
- "Copyright (C) 2005 by Timothy P. Hunter" />
14
+ "Copyright (C) 2006 by Timothy P. Hunter" />
15
15
  <link rel="stylesheet" type="text/css" href="css/doc.css" />
16
16
  <script type="text/javascript" src="scripts/doc.js">
17
17
  </script>
@@ -94,13 +94,13 @@
94
94
  <li><a href="#CompositeOperator">CompositeOperator</a></li>
95
95
 
96
96
  <li><a href="#CompressionType">CompressionType</a></li>
97
+
98
+ <li><a href="#DecorationType">DecorationType</a></li>
97
99
  </ul>
98
100
  </div>
99
101
 
100
102
  <div class="toccol">
101
103
  <ul>
102
- <li><a href="#DecorationType">DecorationType</a></li>
103
-
104
104
  <li><a href="#DisposeType">DisposeType</a></li>
105
105
 
106
106
  <li><a href="#EndianType">EndianType</a></li>
@@ -114,14 +114,16 @@
114
114
  <li><a href="#InterlaceType">InterlaceType</a></li>
115
115
 
116
116
  <li><a href="#MetricType">MetricType</a></li>
117
+
118
+ <li><a href="#NoiseType">NoiseType</a></li>
119
+
120
+ <li><a href="#Opacity">Opacity</a></li>
117
121
  </ul>
118
122
  </div>
119
123
 
120
124
  <div class="toccol">
121
125
  <ul>
122
- <li><a href="#NoiseType">NoiseType</a></li>
123
-
124
- <li><a href="#Opacity">Opacity</a></li>
126
+ <li><a href="#OrientationType">OrientationType</a></li>
125
127
 
126
128
  <li><a href="#PaintMethod">PaintMethod</a></li>
127
129
 
@@ -131,6 +133,8 @@
131
133
 
132
134
  <li><a href="#StretchType">StretchType</a></li>
133
135
 
136
+ <li><a href="#StorageType">StorageType</a></li>
137
+
134
138
  <li><a href="#StyleType">StyleType</a></li>
135
139
 
136
140
  <li><a href="#WeightType">WeightType</a></li>
@@ -148,11 +152,11 @@
148
152
 
149
153
  <dd>An extended form of the <code>Version</code> constant with
150
154
  the format shown here:<br />
151
- <code>This is RMagick 1.4.0 ($Date: 2005/09/26 23:35:06 $)
152
- Copyright (C) 2005 by Timothy P. Hunter<br />
153
- Built with ImageMagick 6.0.0 02/25/04 Q8
154
- http://www.imagemagick.org<br />
155
- Built for ruby 1.8.1 (2003-12-25) [i686-linux]<br />
155
+ <code>This is RMagick 1.10.0 ($Date: 2006/01/21 15:27:19 $)
156
+ Copyright (C) 2006 by Timothy P. Hunter<br />
157
+ Built with GraphicsMagick 1.2 unreleased Q16
158
+ http://www.GraphicsMagick.org/<br />
159
+ Built for ruby 1.8.4 (2005-12-24) [i686-linux]<br />
156
160
  Web page: http://rmagick.rubyforge.org<br />
157
161
  Email: rmagick@rubyforge.org</code></dd>
158
162
 
@@ -162,7 +166,7 @@
162
166
  <code>@(#)ImageMagick X.Y.Z MM/DD/YY Q:16
163
167
  http://www.imagemagick.org</code><br />
164
168
  or<br />
165
- <code>GraphicsMagick 1.0 05/05/03 Q8
169
+ <code>GraphicsMagick X.Y.Z MM/DD/YY Q8
166
170
  http://www.GraphicsMagick.org/</code></dd>
167
171
 
168
172
  <dt>MaxRGB</dt>
@@ -302,6 +306,13 @@
302
306
  files.</span> See <a href=
303
307
  "imageattrs.html#colorspace">colorspace</a>.</p>
304
308
 
309
+ <p>Each version of ImageMagick and GraphicsMagick defines a
310
+ subset of the colorspaces listed below. To list the subset
311
+ supported by your version, issue the command:</p>
312
+ <pre class="example">
313
+ ruby -rRMagick -e"Magick::ColorspaceType.values {|cs| puts cs}"
314
+ </pre>
315
+
305
316
  <dl>
306
317
  <dt>UndefinedColorspace</dt>
307
318
 
@@ -313,7 +324,7 @@
313
324
 
314
325
  <dt>GRAYColorspace</dt>
315
326
 
316
- <dd>&nbsp;</dd>
327
+ <dd>Full-range grayscale</dd>
317
328
 
318
329
  <dt>TransparentColorspace</dt>
319
330
 
@@ -327,19 +338,23 @@
327
338
 
328
339
  <dt>XYZColorspace</dt>
329
340
 
330
- <dd>&nbsp;</dd>
341
+ <dd>CIE XYZ</dd>
342
+
343
+ <dt>YCCColorspace</dt>
344
+
345
+ <dd>Kodak PhotoCD PhotoYCC</dd>
331
346
 
332
347
  <dt>YCbCrColorspace</dt>
333
348
 
334
- <dd>&nbsp;</dd>
349
+ <dd>&nbsp; </dd>
335
350
 
336
351
  <dt>YIQColorspace</dt>
337
352
 
338
- <dd>&nbsp;</dd>
353
+ <dd>&nbsp; </dd>
339
354
 
340
355
  <dt>YPbPrColorspace</dt>
341
356
 
342
- <dd>&nbsp;</dd>
357
+ <dd>&nbsp; </dd>
343
358
 
344
359
  <dt>YUVColorspace</dt>
345
360
 
@@ -356,17 +371,56 @@
356
371
 
357
372
  <dt>SRGBColorspace</dt>
358
373
 
359
- <dd>In &times;Magick, this constant is named sRGBColorspace,
360
- but since Ruby constants must start with an uppercase letter, I
361
- had to change it.</dd>
374
+ <dd>Kodak PhotoCD sRGB. In &times;Magick, this constant is
375
+ named sRGBColorspace, but since Ruby constants must start with
376
+ an uppercase letter, I had to change it.</dd>
362
377
 
363
378
  <dt>HSLColorspace</dt>
364
379
 
365
- <dd>Available in ImageMagick 5.5.7.</dd>
380
+ <dd>Hue, saturation, luminosity</dd>
366
381
 
367
382
  <dt>HWBColorspace</dt>
368
383
 
369
- <dd>Available in ImageMagick 5.5.7.</dd>
384
+ <dd>Hue, whiteness, blackness</dd>
385
+
386
+ <dt>HSBColorspace</dt>
387
+
388
+ <dd>&nbsp; </dd>
389
+
390
+ <dt>LogColorspace</dt>
391
+
392
+ <dd>&nbsp; </dd>
393
+
394
+ <dt>LABColorspace</dt>
395
+
396
+ <dd>&nbsp; </dd>
397
+ </dl>
398
+
399
+ <p>The colorspaces in this group are typically associated with the DPX
400
+ and Cineon image formats used in the motion picture industry.</p>
401
+
402
+ <dl>
403
+ <dt>CineonLogRGBColorspace</dt>
404
+
405
+ <dd>A logarithmic RGB space based on Kodak's Cineon log
406
+ definition. RGB data with Cineon Log scaling, 2.048 density
407
+ range.</dd>
408
+
409
+ <dt>Rec601LumaColorspace</dt>
410
+
411
+ <dd>Luma (Y) according to ITU-R 601</dd>
412
+
413
+ <dt>Rec601YCbCrColorspace</dt>
414
+
415
+ <dd>YCbCr according to ITU-R 601</dd>
416
+
417
+ <dt>Rec709LumaColorspace</dt>
418
+
419
+ <dd>Luma (Y) according to ITU-R 709</dd>
420
+
421
+ <dt>Rec709YCbCrColorspace</dt>
422
+
423
+ <dd>YCbCr according to ITU-R 709</dd>
370
424
  </dl>
371
425
 
372
426
  <h3 class="const" id="ComplianceType">ComplianceType</h3>
@@ -447,10 +501,9 @@
447
501
 
448
502
  <dt>PlusCompositeOp</dt>
449
503
 
450
- <dd class="imquote">The result is just the sum of
451
- the&nbsp;image data. Output values are cropped to 255 (no
452
- overflow). This operation is independent of the matte
453
- channels.</dd>
504
+ <dd class="imquote">The result is just the sum of the image
505
+ data. Output values are cropped to 255 (no overflow). This
506
+ operation is independent of the matte channels.</dd>
454
507
 
455
508
  <dt>MinusCompositeOp</dt>
456
509
 
@@ -529,7 +582,7 @@
529
582
 
530
583
  <dt>DissolveCompositeOp</dt>
531
584
 
532
- <dd>&nbsp;</dd>
585
+ <dd> </dd>
533
586
 
534
587
  <dt>DisplaceCompositeOp</dt>
535
588
 
@@ -540,15 +593,15 @@
540
593
 
541
594
  <dt>ModulateCompositeOp</dt>
542
595
 
543
- <dd>&nbsp;</dd>
596
+ <dd> </dd>
544
597
 
545
598
  <dt>ThresholdCompositeOp</dt>
546
599
 
547
- <dd>&nbsp;</dd>
600
+ <dd> </dd>
548
601
 
549
602
  <dt>NoCompositeOp</dt>
550
603
 
551
- <dd>&nbsp;</dd>
604
+ <dd> </dd>
552
605
 
553
606
  <dt>DarkenCompositeOp</dt>
554
607
 
@@ -593,7 +646,7 @@
593
646
 
594
647
  <dt>OverlayCompositeOp</dt>
595
648
 
596
- <dd>&nbsp;</dd>
649
+ <dd> </dd>
597
650
 
598
651
  <dt>CopyCyanCompositeOp</dt>
599
652
 
@@ -694,8 +747,8 @@
694
747
  <dt>BZipCompression</dt>
695
748
 
696
749
  <dd class="imquote">BZip (Burrows-Wheeler block-sorting text
697
- compression algorithm and Huffman coding)&nbsp; as used by
698
- bzip2 utilities</dd>
750
+ compression algorithm and Huffman coding) as used by bzip2
751
+ utilities</dd>
699
752
 
700
753
  <dt>FaxCompression</dt>
701
754
 
@@ -948,11 +1001,11 @@
948
1001
 
949
1002
  <dt>ColorSeparationMatteType</dt>
950
1003
 
951
- <dd>&nbsp;</dd>
1004
+ <dd> </dd>
952
1005
 
953
1006
  <dt>OptimizeType</dt>
954
1007
 
955
- <dd>&nbsp;</dd>
1008
+ <dd> </dd>
956
1009
  </dl>
957
1010
 
958
1011
  <h3 class="const" id="InterlaceType">InterlaceType</h3>
@@ -1051,6 +1104,34 @@
1051
1104
  <dd>The maximum amount of opacity.</dd>
1052
1105
  </dl>
1053
1106
 
1107
+ <h3 class="const" id="OrientationType">OrientationType</h3>
1108
+
1109
+ <p>Specify the orientation of the image pixels. See <a href=
1110
+ "imageattrs.html#orientation">Image#orientation</a> and <a href=
1111
+ "info.html#orientation">Info#orientation</a>. See <a href=
1112
+ "http://jpegclub.org/exif_orientation.html">http://jpegclub.org/exif_orientation.html</a>
1113
+ for an explanation of these values.</p>
1114
+
1115
+ <dl>
1116
+ <dt>UndefinedOrientation</dt>
1117
+
1118
+ <dt>TopLeftOrientation</dt>
1119
+
1120
+ <dt>TopRightOrientation</dt>
1121
+
1122
+ <dt>BottomRightOrientation</dt>
1123
+
1124
+ <dt>BottomLeftOrientation</dt>
1125
+
1126
+ <dt>LeftTopOrientation</dt>
1127
+
1128
+ <dt>RightTopOrientation</dt>
1129
+
1130
+ <dt>RightBottomOrientation</dt>
1131
+
1132
+ <dt>LeftBottomOrientation</dt>
1133
+ </dl>
1134
+
1054
1135
  <h3 class="const" id="PaintMethod">PaintMethod</h3>
1055
1136
 
1056
1137
  <p class="imquote">Specify how pixel colors are to be replaced in
@@ -1178,6 +1259,47 @@
1178
1259
  <dt>AnyStretch</dt>
1179
1260
  </dl>
1180
1261
 
1262
+ <h3 class="const" id="StorageType">StorageType</h3>
1263
+
1264
+ <p>See <a href="image2.html#import_pixels">import_pixels</a> and
1265
+ <a href=
1266
+ "image2.html#export_pixels_to_str">export_pixels_to_str</a>.</p>
1267
+
1268
+ <dl>
1269
+ <dt>CharPixel</dt>
1270
+
1271
+ <dd>corresponds to a C <code>unsigned char</code>, range
1272
+ 0-255.</dd>
1273
+
1274
+ <dt>ShortPixel</dt>
1275
+
1276
+ <dd>corresponds to a C <code>unsigned short</code>, range
1277
+ 0-65535.</dd>
1278
+
1279
+ <dt>IntegerPixel</dt>
1280
+
1281
+ <dd>corresponds to a C <code>unsigned int</code>, range
1282
+ 0-4294967295.</dd>
1283
+
1284
+ <dt>LongPixel</dt>
1285
+
1286
+ <dd>corresponds to a C <code>unsigned long</code>, range
1287
+ 0-4294967295 (for 32-bit longs).</dd>
1288
+
1289
+ <dt>FloatPixel</dt>
1290
+
1291
+ <dd>corresponds to a C <code>float</code>, range 0.0-1.0.</dd>
1292
+
1293
+ <dt>DoublePixel</dt>
1294
+
1295
+ <dd>corresponds to a C <code>double</code>, range 0.0-1.0.</dd>
1296
+
1297
+ <dt>QuantumPixel</dt>
1298
+
1299
+ <dd>corresponds to the Quantum type used by &times;Magick,
1300
+ range 0-MaxRGB.</dd>
1301
+ </dl>
1302
+
1181
1303
  <h3 class="const" id="StyleType">StyleType</h3>
1182
1304
 
1183
1305
  <p>See <a href="draw.html#font_style_eq">font_style=</a>.</p>
@@ -1220,12 +1342,12 @@
1220
1342
  <dd>Decreases weight by 100</dd>
1221
1343
  </dl>
1222
1344
 
1223
- <p class="spacer">&nbsp;</p>
1345
+ <p class="spacer"> </p>
1224
1346
 
1225
1347
  <div class="nav">
1226
- &laquo;&nbsp;<a href="info.html">Prev</a> | <a href=
1227
- "index.html">Contents</a> | <a href=
1228
- "rvgtut.html">Next</a>&nbsp;&raquo;
1348
+ &laquo; <a href="info.html">Prev</a> | <a href=
1349
+ "index.html">Contents</a> | <a href="rvgtut.html">Next</a>
1350
+ &raquo;
1229
1351
  </div>
1230
1352
  </body>
1231
1353
  </html>