rmagick 4.1.0.rc2 → 4.1.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 (412) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +63 -0
  3. data/.editorconfig +3 -0
  4. data/.github/workflows/ci.yml +148 -0
  5. data/.gitignore +3 -1
  6. data/.rspec +1 -0
  7. data/.rubocop.yml +24 -0
  8. data/.rubocop_todo.yml +80 -270
  9. data/.yardopts +5 -0
  10. data/CHANGELOG.md +63 -0
  11. data/CONTRIBUTING.md +14 -10
  12. data/README.md +292 -0
  13. data/Rakefile +16 -22
  14. data/before_install_linux.sh +22 -32
  15. data/before_install_osx.sh +56 -2
  16. data/ext/RMagick/extconf.rb +100 -94
  17. data/ext/RMagick/rmagick.c +77 -104
  18. data/ext/RMagick/rmagick.h +74 -70
  19. data/ext/RMagick/rmdraw.c +261 -444
  20. data/ext/RMagick/rmenum.c +96 -113
  21. data/ext/RMagick/rmfill.c +46 -77
  22. data/ext/RMagick/rmilist.c +136 -244
  23. data/ext/RMagick/rmimage.c +3395 -4166
  24. data/ext/RMagick/rminfo.c +531 -737
  25. data/ext/RMagick/rmkinfo.c +21 -87
  26. data/ext/RMagick/rmmain.c +405 -245
  27. data/ext/RMagick/rmmontage.c +60 -126
  28. data/ext/RMagick/rmpixel.c +401 -345
  29. data/ext/RMagick/rmstruct.c +62 -88
  30. data/ext/RMagick/rmutil.c +112 -218
  31. data/lib/rmagick/version.rb +1 -1
  32. data/lib/rmagick_internal.rb +128 -77
  33. data/lib/rvg/clippath.rb +2 -1
  34. data/lib/rvg/container.rb +10 -5
  35. data/lib/rvg/describable.rb +1 -1
  36. data/lib/rvg/embellishable.rb +5 -4
  37. data/lib/rvg/misc.rb +15 -12
  38. data/lib/rvg/paint.rb +2 -1
  39. data/lib/rvg/pathdata.rb +12 -11
  40. data/lib/rvg/rvg.rb +8 -4
  41. data/lib/rvg/stylable.rb +9 -7
  42. data/lib/rvg/text.rb +11 -6
  43. data/lib/rvg/transformable.rb +3 -2
  44. data/lib/rvg/units.rb +1 -1
  45. data/rmagick.gemspec +7 -6
  46. metadata +31 -421
  47. data/.appveyor.yml +0 -57
  48. data/.circleci/config.yml +0 -56
  49. data/.ruby-version +0 -1
  50. data/.simplecov +0 -27
  51. data/.travis.yml +0 -64
  52. data/Doxyfile +0 -1514
  53. data/README.textile +0 -259
  54. data/benchmarks/memory/README.md +0 -50
  55. data/benchmarks/memory/image_new.rb +0 -8
  56. data/benchmarks/memory/rmagick.gnuplot +0 -16
  57. data/doc/.cvsignore +0 -1
  58. data/doc/comtasks.html +0 -287
  59. data/doc/constants.html +0 -1581
  60. data/doc/css/doc.css +0 -299
  61. data/doc/css/popup.css +0 -34
  62. data/doc/css/ref.css +0 -67
  63. data/doc/draw.html +0 -3272
  64. data/doc/ex/InitialCoords.rb +0 -22
  65. data/doc/ex/NewCoordSys.rb +0 -30
  66. data/doc/ex/OrigCoordSys.rb +0 -16
  67. data/doc/ex/PreserveAspectRatio.rb +0 -204
  68. data/doc/ex/RotateScale.rb +0 -36
  69. data/doc/ex/Skew.rb +0 -38
  70. data/doc/ex/Use01.rb +0 -15
  71. data/doc/ex/Use02.rb +0 -20
  72. data/doc/ex/Use03.rb +0 -16
  73. data/doc/ex/ViewBox.rb +0 -31
  74. data/doc/ex/adaptive_threshold.rb +0 -9
  75. data/doc/ex/add_noise.rb +0 -16
  76. data/doc/ex/affine.rb +0 -48
  77. data/doc/ex/affine_transform.rb +0 -20
  78. data/doc/ex/arc.rb +0 -49
  79. data/doc/ex/arcpath.rb +0 -32
  80. data/doc/ex/arcs01.rb +0 -28
  81. data/doc/ex/arcs02.rb +0 -59
  82. data/doc/ex/average.rb +0 -15
  83. data/doc/ex/axes.rb +0 -64
  84. data/doc/ex/baseline_shift01.rb +0 -17
  85. data/doc/ex/bilevel_channel.rb +0 -8
  86. data/doc/ex/blur_image.rb +0 -12
  87. data/doc/ex/border.rb +0 -10
  88. data/doc/ex/bounding_box.rb +0 -42
  89. data/doc/ex/cbezier1.rb +0 -41
  90. data/doc/ex/cbezier2.rb +0 -41
  91. data/doc/ex/cbezier3.rb +0 -41
  92. data/doc/ex/cbezier4.rb +0 -42
  93. data/doc/ex/cbezier5.rb +0 -42
  94. data/doc/ex/cbezier6.rb +0 -53
  95. data/doc/ex/channel.rb +0 -25
  96. data/doc/ex/charcoal.rb +0 -12
  97. data/doc/ex/chop.rb +0 -29
  98. data/doc/ex/circle.rb +0 -33
  99. data/doc/ex/circle01.rb +0 -16
  100. data/doc/ex/clip_path.rb +0 -60
  101. data/doc/ex/coalesce.rb +0 -57
  102. data/doc/ex/color_fill_to_border.rb +0 -29
  103. data/doc/ex/color_floodfill.rb +0 -28
  104. data/doc/ex/color_histogram.rb +0 -47
  105. data/doc/ex/color_reset.rb +0 -11
  106. data/doc/ex/colorize.rb +0 -16
  107. data/doc/ex/colors.rb +0 -64
  108. data/doc/ex/compose_mask.rb +0 -22
  109. data/doc/ex/composite.rb +0 -133
  110. data/doc/ex/composite_layers.rb +0 -52
  111. data/doc/ex/composite_tiled.rb +0 -21
  112. data/doc/ex/contrast.rb +0 -36
  113. data/doc/ex/crop.rb +0 -31
  114. data/doc/ex/crop_with_gravity.rb +0 -42
  115. data/doc/ex/cubic01.rb +0 -43
  116. data/doc/ex/cubic02.rb +0 -91
  117. data/doc/ex/cycle_colormap.rb +0 -21
  118. data/doc/ex/dissolve.rb +0 -12
  119. data/doc/ex/drawcomp.rb +0 -41
  120. data/doc/ex/drop_shadow.rb +0 -60
  121. data/doc/ex/edge.rb +0 -11
  122. data/doc/ex/ellipse.rb +0 -45
  123. data/doc/ex/ellipse01.rb +0 -21
  124. data/doc/ex/emboss.rb +0 -11
  125. data/doc/ex/enhance.rb +0 -28
  126. data/doc/ex/equalize.rb +0 -11
  127. data/doc/ex/evenodd.rb +0 -42
  128. data/doc/ex/fill_pattern.rb +0 -23
  129. data/doc/ex/flatten_images.rb +0 -36
  130. data/doc/ex/flip.rb +0 -11
  131. data/doc/ex/flop.rb +0 -11
  132. data/doc/ex/font_styles.rb +0 -32
  133. data/doc/ex/fonts.rb +0 -16
  134. data/doc/ex/frame.rb +0 -12
  135. data/doc/ex/gaussian_blur.rb +0 -11
  136. data/doc/ex/get_multiline_type_metrics.rb +0 -41
  137. data/doc/ex/get_pixels.rb +0 -45
  138. data/doc/ex/get_type_metrics.rb +0 -142
  139. data/doc/ex/gradientfill.rb +0 -27
  140. data/doc/ex/grav.rb +0 -45
  141. data/doc/ex/gravity.rb +0 -78
  142. data/doc/ex/group.rb +0 -26
  143. data/doc/ex/hatchfill.rb +0 -27
  144. data/doc/ex/image.rb +0 -44
  145. data/doc/ex/images/Apple.miff +0 -0
  146. data/doc/ex/images/Ballerina.jpg +0 -0
  147. data/doc/ex/images/Ballerina3.jpg +0 -0
  148. data/doc/ex/images/Button_0.gif +0 -0
  149. data/doc/ex/images/Button_1.gif +0 -0
  150. data/doc/ex/images/Button_2.gif +0 -0
  151. data/doc/ex/images/Button_3.gif +0 -0
  152. data/doc/ex/images/Button_4.gif +0 -0
  153. data/doc/ex/images/Button_5.gif +0 -0
  154. data/doc/ex/images/Button_6.gif +0 -0
  155. data/doc/ex/images/Button_7.gif +0 -0
  156. data/doc/ex/images/Button_8.gif +0 -0
  157. data/doc/ex/images/Button_9.gif +0 -0
  158. data/doc/ex/images/Button_A.gif +0 -0
  159. data/doc/ex/images/Button_B.gif +0 -0
  160. data/doc/ex/images/Button_C.gif +0 -0
  161. data/doc/ex/images/Button_D.gif +0 -0
  162. data/doc/ex/images/Button_E.gif +0 -0
  163. data/doc/ex/images/Button_F.gif +0 -0
  164. data/doc/ex/images/Button_G.gif +0 -0
  165. data/doc/ex/images/Button_H.gif +0 -0
  166. data/doc/ex/images/Button_I.gif +0 -0
  167. data/doc/ex/images/Button_J.gif +0 -0
  168. data/doc/ex/images/Button_K.gif +0 -0
  169. data/doc/ex/images/Button_L.gif +0 -0
  170. data/doc/ex/images/Button_M.gif +0 -0
  171. data/doc/ex/images/Button_N.gif +0 -0
  172. data/doc/ex/images/Button_O.gif +0 -0
  173. data/doc/ex/images/Button_P.gif +0 -0
  174. data/doc/ex/images/Button_Q.gif +0 -0
  175. data/doc/ex/images/Button_R.gif +0 -0
  176. data/doc/ex/images/Button_S.gif +0 -0
  177. data/doc/ex/images/Button_T.gif +0 -0
  178. data/doc/ex/images/Button_U.gif +0 -0
  179. data/doc/ex/images/Button_V.gif +0 -0
  180. data/doc/ex/images/Button_W.gif +0 -0
  181. data/doc/ex/images/Button_X.gif +0 -0
  182. data/doc/ex/images/Button_Y.gif +0 -0
  183. data/doc/ex/images/Button_Z.gif +0 -0
  184. data/doc/ex/images/Cheetah.jpg +0 -0
  185. data/doc/ex/images/Coffee.png +0 -0
  186. data/doc/ex/images/Flower_Hat.jpg +0 -0
  187. data/doc/ex/images/Gold_Statue.jpg +0 -0
  188. data/doc/ex/images/Hot_Air_Balloons.jpg +0 -0
  189. data/doc/ex/images/Hot_Air_Balloons_H.jpg +0 -0
  190. data/doc/ex/images/Leaf.miff +0 -0
  191. data/doc/ex/images/No.png +0 -0
  192. data/doc/ex/images/Polynesia.jpg +0 -0
  193. data/doc/ex/images/Red_Rocks.jpg +0 -0
  194. data/doc/ex/images/Rocks_On_Beach.miff +0 -0
  195. data/doc/ex/images/Shorts.jpg +0 -0
  196. data/doc/ex/images/Snake.png +0 -0
  197. data/doc/ex/images/Violin.jpg +0 -0
  198. data/doc/ex/images/Yellow_Rose.miff +0 -0
  199. data/doc/ex/images/big-duck.gif +0 -0
  200. data/doc/ex/images/duck.gif +0 -0
  201. data/doc/ex/images/duck0.gif +0 -0
  202. data/doc/ex/images/duck1.gif +0 -0
  203. data/doc/ex/images/duck10.gif +0 -0
  204. data/doc/ex/images/duck11.gif +0 -0
  205. data/doc/ex/images/duck12.gif +0 -0
  206. data/doc/ex/images/duck13.gif +0 -0
  207. data/doc/ex/images/duck14.gif +0 -0
  208. data/doc/ex/images/duck15.gif +0 -0
  209. data/doc/ex/images/duck2.gif +0 -0
  210. data/doc/ex/images/duck3.gif +0 -0
  211. data/doc/ex/images/duck4.gif +0 -0
  212. data/doc/ex/images/duck5.gif +0 -0
  213. data/doc/ex/images/duck6.gif +0 -0
  214. data/doc/ex/images/duck7.gif +0 -0
  215. data/doc/ex/images/duck8.gif +0 -0
  216. data/doc/ex/images/duck9.gif +0 -0
  217. data/doc/ex/images/graydient230x6.gif +0 -0
  218. data/doc/ex/images/image_with_profile.jpg +0 -0
  219. data/doc/ex/images/logo400x83.gif +0 -0
  220. data/doc/ex/images/model.miff +0 -0
  221. data/doc/ex/images/notimplemented.gif +0 -0
  222. data/doc/ex/images/smile.miff +0 -0
  223. data/doc/ex/images/spin.gif +0 -0
  224. data/doc/ex/implode.rb +0 -34
  225. data/doc/ex/level.rb +0 -11
  226. data/doc/ex/level_colors.rb +0 -11
  227. data/doc/ex/line.rb +0 -41
  228. data/doc/ex/line01.rb +0 -21
  229. data/doc/ex/mask.rb +0 -35
  230. data/doc/ex/matte_fill_to_border.rb +0 -39
  231. data/doc/ex/matte_floodfill.rb +0 -32
  232. data/doc/ex/matte_replace.rb +0 -39
  233. data/doc/ex/median_filter.rb +0 -28
  234. data/doc/ex/modulate.rb +0 -11
  235. data/doc/ex/mono.rb +0 -23
  236. data/doc/ex/morph.rb +0 -25
  237. data/doc/ex/mosaic.rb +0 -37
  238. data/doc/ex/motion_blur.rb +0 -11
  239. data/doc/ex/negate.rb +0 -11
  240. data/doc/ex/negate_channel.rb +0 -9
  241. data/doc/ex/nested_rvg.rb +0 -21
  242. data/doc/ex/nonzero.rb +0 -42
  243. data/doc/ex/normalize.rb +0 -11
  244. data/doc/ex/oil_paint.rb +0 -11
  245. data/doc/ex/opacity.rb +0 -37
  246. data/doc/ex/ordered_dither.rb +0 -11
  247. data/doc/ex/path.rb +0 -63
  248. data/doc/ex/pattern1.rb +0 -25
  249. data/doc/ex/pattern2.rb +0 -26
  250. data/doc/ex/polaroid.rb +0 -26
  251. data/doc/ex/polygon.rb +0 -23
  252. data/doc/ex/polygon01.rb +0 -21
  253. data/doc/ex/polyline.rb +0 -22
  254. data/doc/ex/polyline01.rb +0 -21
  255. data/doc/ex/posterize.rb +0 -8
  256. data/doc/ex/preview.rb +0 -8
  257. data/doc/ex/qbezierpath.rb +0 -52
  258. data/doc/ex/quad01.rb +0 -34
  259. data/doc/ex/quantize-m.rb +0 -25
  260. data/doc/ex/radial_blur.rb +0 -9
  261. data/doc/ex/raise.rb +0 -8
  262. data/doc/ex/random_threshold_channel.rb +0 -13
  263. data/doc/ex/rect01.rb +0 -14
  264. data/doc/ex/rect02.rb +0 -20
  265. data/doc/ex/rectangle.rb +0 -34
  266. data/doc/ex/reduce_noise.rb +0 -28
  267. data/doc/ex/remap.rb +0 -11
  268. data/doc/ex/remap_images.rb +0 -19
  269. data/doc/ex/resize_to_fill.rb +0 -8
  270. data/doc/ex/resize_to_fit.rb +0 -8
  271. data/doc/ex/roll.rb +0 -9
  272. data/doc/ex/rotate.rb +0 -44
  273. data/doc/ex/rotate_f.rb +0 -14
  274. data/doc/ex/roundrect.rb +0 -33
  275. data/doc/ex/rubyname.rb +0 -30
  276. data/doc/ex/rvg_clippath.rb +0 -12
  277. data/doc/ex/rvg_linecap.rb +0 -42
  278. data/doc/ex/rvg_linejoin.rb +0 -40
  279. data/doc/ex/rvg_opacity.rb +0 -18
  280. data/doc/ex/rvg_pattern.rb +0 -26
  281. data/doc/ex/rvg_stroke_dasharray.rb +0 -11
  282. data/doc/ex/segment.rb +0 -11
  283. data/doc/ex/sepiatone.rb +0 -7
  284. data/doc/ex/shade.rb +0 -11
  285. data/doc/ex/shadow.rb +0 -30
  286. data/doc/ex/shave.rb +0 -15
  287. data/doc/ex/shear.rb +0 -10
  288. data/doc/ex/sketch.rb +0 -17
  289. data/doc/ex/skewx.rb +0 -51
  290. data/doc/ex/skewy.rb +0 -47
  291. data/doc/ex/smile.rb +0 -126
  292. data/doc/ex/solarize.rb +0 -11
  293. data/doc/ex/sparse_color.rb +0 -55
  294. data/doc/ex/splice.rb +0 -8
  295. data/doc/ex/spread.rb +0 -11
  296. data/doc/ex/stegano.rb +0 -54
  297. data/doc/ex/stroke_dasharray.rb +0 -42
  298. data/doc/ex/stroke_fill.rb +0 -10
  299. data/doc/ex/stroke_linecap.rb +0 -44
  300. data/doc/ex/stroke_linejoin.rb +0 -48
  301. data/doc/ex/stroke_width.rb +0 -49
  302. data/doc/ex/swirl.rb +0 -17
  303. data/doc/ex/text.rb +0 -37
  304. data/doc/ex/text01.rb +0 -16
  305. data/doc/ex/text_align.rb +0 -36
  306. data/doc/ex/text_antialias.rb +0 -37
  307. data/doc/ex/text_styles.rb +0 -19
  308. data/doc/ex/text_undercolor.rb +0 -28
  309. data/doc/ex/texture_fill_to_border.rb +0 -34
  310. data/doc/ex/texture_floodfill.rb +0 -32
  311. data/doc/ex/texturefill.rb +0 -24
  312. data/doc/ex/threshold.rb +0 -13
  313. data/doc/ex/to_blob.rb +0 -13
  314. data/doc/ex/translate.rb +0 -39
  315. data/doc/ex/transparent.rb +0 -38
  316. data/doc/ex/transpose.rb +0 -9
  317. data/doc/ex/transverse.rb +0 -9
  318. data/doc/ex/tref01.rb +0 -24
  319. data/doc/ex/triangle01.rb +0 -15
  320. data/doc/ex/trim.rb +0 -23
  321. data/doc/ex/tspan01.rb +0 -17
  322. data/doc/ex/tspan02.rb +0 -17
  323. data/doc/ex/tspan03.rb +0 -19
  324. data/doc/ex/unsharp_mask.rb +0 -28
  325. data/doc/ex/viewex.rb +0 -33
  326. data/doc/ex/vignette.rb +0 -12
  327. data/doc/ex/watermark.rb +0 -27
  328. data/doc/ex/wave.rb +0 -9
  329. data/doc/ex/wet_floor.rb +0 -58
  330. data/doc/ex/writing_mode01.rb +0 -26
  331. data/doc/ex/writing_mode02.rb +0 -26
  332. data/doc/ilist.html +0 -2056
  333. data/doc/image1.html +0 -4680
  334. data/doc/image2.html +0 -3665
  335. data/doc/image3.html +0 -4522
  336. data/doc/imageattrs.html +0 -1638
  337. data/doc/imusage.html +0 -514
  338. data/doc/index.html +0 -416
  339. data/doc/info.html +0 -1499
  340. data/doc/magick.html +0 -570
  341. data/doc/optequiv.html +0 -2435
  342. data/doc/rvg.html +0 -975
  343. data/doc/rvgclip.html +0 -248
  344. data/doc/rvggroup.html +0 -305
  345. data/doc/rvgimage.html +0 -289
  346. data/doc/rvgpattern.html +0 -475
  347. data/doc/rvgshape.html +0 -406
  348. data/doc/rvgstyle.html +0 -270
  349. data/doc/rvgtext.html +0 -465
  350. data/doc/rvgtspan.html +0 -238
  351. data/doc/rvgtut.html +0 -530
  352. data/doc/rvguse.html +0 -145
  353. data/doc/rvgxform.html +0 -294
  354. data/doc/scripts/doc.js +0 -22
  355. data/doc/scripts/stripeTables.js +0 -23
  356. data/doc/struct.html +0 -1339
  357. data/doc/usage.html +0 -1621
  358. data/examples/constitute.rb +0 -7
  359. data/examples/crop_with_gravity.rb +0 -43
  360. data/examples/demo.rb +0 -323
  361. data/examples/describe.rb +0 -41
  362. data/examples/find_similar_region.rb +0 -34
  363. data/examples/histogram.rb +0 -312
  364. data/examples/identify.rb +0 -174
  365. data/examples/image_opacity.rb +0 -28
  366. data/examples/import_export.rb +0 -31
  367. data/examples/pattern_fill.rb +0 -37
  368. data/examples/rotating_text.rb +0 -45
  369. data/examples/spinner.rb +0 -49
  370. data/examples/thumbnail.rb +0 -64
  371. data/examples/vignette.rb +0 -78
  372. data/spec/rmagick/ImageList1_spec.rb +0 -24
  373. data/spec/rmagick/draw_spec.rb +0 -155
  374. data/spec/rmagick/image/blue_shift_spec.rb +0 -14
  375. data/spec/rmagick/image/channel_entropy_spec.rb +0 -9
  376. data/spec/rmagick/image/composite_spec.rb +0 -72
  377. data/spec/rmagick/image/constitute_spec.rb +0 -13
  378. data/spec/rmagick/image/dispatch_spec.rb +0 -16
  379. data/spec/rmagick/image/dissolve_spec.rb +0 -54
  380. data/spec/rmagick/image/from_blob_spec.rb +0 -12
  381. data/spec/rmagick/image/ping_spec.rb +0 -12
  382. data/spec/rmagick/image/properties_spec.rb +0 -27
  383. data/spec/rmagick/image/read_spec.rb +0 -28
  384. data/spec/spec_helper.rb +0 -9
  385. data/spec/support/issue_200/app.rb +0 -8
  386. data/test/Draw.rb +0 -351
  387. data/test/Enum.rb +0 -228
  388. data/test/Fill.rb +0 -93
  389. data/test/Image1.rb +0 -606
  390. data/test/Image2.rb +0 -1408
  391. data/test/Image3.rb +0 -1086
  392. data/test/ImageList1.rb +0 -858
  393. data/test/ImageList2.rb +0 -375
  394. data/test/Image_attributes.rb +0 -635
  395. data/test/Import_Export.rb +0 -111
  396. data/test/Info.rb +0 -436
  397. data/test/KernelInfo.rb +0 -59
  398. data/test/Magick.rb +0 -311
  399. data/test/Pixel.rb +0 -259
  400. data/test/PolaroidOptions.rb +0 -23
  401. data/test/Preview.rb +0 -26
  402. data/test/Struct.rb +0 -45
  403. data/test/appearance/Montage.rb +0 -26
  404. data/test/appearance/appearance_assertion.rb +0 -13
  405. data/test/appearance/expected/montage_border_color.jpg +0 -0
  406. data/test/cmyk.icm +0 -0
  407. data/test/lib/internal/Draw.rb +0 -811
  408. data/test/lib/internal/Geometry.rb +0 -98
  409. data/test/lib/internal/Magick.rb +0 -40
  410. data/test/srgb.icm +0 -0
  411. data/test/test_all_basic.rb +0 -49
  412. data/test/tmpnam_test.rb +0 -50
@@ -1,1581 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml">
5
- <head>
6
- <meta name="generator" content=
7
- "HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
8
-
9
- <title>RMagick 0.0.0: Constants</title>
10
- <meta http-equiv="Content-Type" content=
11
- "text/html; charset=us-ascii" />
12
- <meta name="GENERATOR" content="Quanta Plus" />
13
- <meta name="Copyright" content=
14
- "Copyright (C) 2006 by Timothy P. Hunter" />
15
- <link rel="stylesheet" type="text/css" href="css/doc.css" />
16
- <script type="text/javascript" src="scripts/doc.js">
17
- </script>
18
- <style type="text/css">
19
- /*<![CDATA[*/
20
-
21
- /* Styles local to this page. */
22
- dl, p {
23
- margin-left: 100px;
24
- margin-right:100px;
25
- }
26
- dt {
27
- font-family: monospace;
28
- }
29
-
30
- /*
31
- * Deliberately similar styling to the .sig h3
32
- */
33
- h3.const {
34
- background-color: #c0c0c0;
35
- color: #000;
36
- padding-left: 5px;
37
- margin-top: 2em;
38
- }
39
-
40
- /*
41
- * Modify .simple_table for the QuantumRange/QuantumDepth table.
42
- * The major differences are the centered text and the auto width.
43
- */
44
- #maxrgb {
45
- border-collapse: collapse;
46
- border: thin solid black;
47
- background-color: #f8f8f8;
48
- margin-top: 1em;
49
- margin-right: auto;
50
- margin-bottom: 1em;
51
- margin-left: auto;
52
- text-align: center;
53
- width: auto;
54
- }
55
- #maxrgb caption {
56
- font-weight: bold;
57
- }
58
-
59
- /*]]>*/
60
- </style>
61
- </head>
62
-
63
- <body>
64
- <h6 id="header">RMagick 0.0.0 User's Guide and Reference</h6>
65
-
66
- <div class="nav">
67
- &laquo;&nbsp;<a href="info.html">Prev</a> | <a href=
68
- "index.html">Contents</a> | <a href=
69
- "rvgtut.html">Next</a>&nbsp;&raquo;
70
- </div>
71
-
72
- <h1>Constants</h1>
73
-
74
- <div id="toc">
75
- <h2>Table of Contents</h2>
76
-
77
- <h3>Constants</h3>
78
-
79
- <div class="toccol">
80
- <ul>
81
- <li><a href="#Miscellaneous_constants">Miscellaneous
82
- constants</a></li>
83
-
84
- <li><a href="#AlignType">AlignType</a></li>
85
-
86
- <li><a href="#ChannelType">ChannelType</a></li>
87
-
88
- <li><a href="#ClassType">ClassType</a></li>
89
-
90
- <li><a href="#ColorspaceType">ColorspaceType</a></li>
91
-
92
- <li><a href="#ComplianceType">ComplianceType</a></li>
93
-
94
- <li><a href="#CompositeOperator">CompositeOperator</a></li>
95
-
96
- <li><a href="#CompressionType">CompressionType</a></li>
97
-
98
- <li><a href="#DecorationType">DecorationType</a></li>
99
- </ul>
100
- </div>
101
-
102
- <div class="toccol">
103
- <ul>
104
- <li><a href="#DisposeType">DisposeType</a></li>
105
-
106
- <li><a href="#DitherMethod">DitherMethod</a></li>
107
-
108
- <li><a href="#EndianType">EndianType</a></li>
109
-
110
- <li><a href="#FilterTypes">FilterTypes</a></li>
111
-
112
- <li><a href="#GravityType">GravityType</a></li>
113
-
114
- <li><a href="#ImageType">ImageType</a></li>
115
-
116
- <li><a href="#InterlaceType">InterlaceType</a></li>
117
-
118
- <li><a href=
119
- "#InterpolatePixelMethod">InterpolatePixelMethod</a></li>
120
-
121
- <li><a href="#MetricType">MetricType</a></li>
122
- </ul>
123
- </div>
124
-
125
- <div class="toccol">
126
- <ul>
127
- <li><a href="#NoiseType">NoiseType</a></li>
128
-
129
- <li><a href="#Opacity">Opacity</a></li>
130
-
131
- <li><a href="#OrientationType">OrientationType</a></li>
132
-
133
- <li><a href="#PaintMethod">PaintMethod</a></li>
134
-
135
- <li><a href="#RenderingIntent">RenderingIntent</a></li>
136
-
137
- <li><a href="#ResolutionType">ResolutionType</a></li>
138
-
139
- <li><a href="#StretchType">StretchType</a></li>
140
-
141
- <li><a href="#StorageType">StorageType</a></li>
142
-
143
- <li><a href="#StyleType">StyleType</a></li>
144
-
145
- <li><a href="#WeightType">WeightType</a></li>
146
- </ul>
147
- </div>
148
- </div>
149
-
150
- <h2 class="methods">Constants</h2>
151
-
152
- <h3 class="const" style="margin-top:0" id=
153
- "Miscellaneous_constants">Miscellaneous constants</h3>
154
-
155
- <dl>
156
- <dt>Long_version</dt>
157
-
158
- <dd>An extended form of the <code>Version</code> constant with
159
- the format shown here:<br />
160
- <code>This is RMagick 2.0.0 ($Date: 2009/09/05 20:10:15 $)
161
- Copyright (C) 2008 by Timothy P. Hunter<br />
162
- Built with ImageMagick 6.3.7 01/05/08 Q16
163
- http://www.imagemagick.org<br />
164
- Built for ruby 1.8.6<br />
165
- Web page: http://rmagick.rubyforge.org<br />
166
- Email: rmagick@rubyforge.org</code></dd>
167
-
168
- <dt>Magick_version</dt>
169
-
170
- <dd>The ImageMagick version string. This has the form:<br />
171
- <code>@(#)ImageMagick X.Y.Z MM/DD/YY Q:16
172
- http://www.imagemagick.org</code></dd>
173
-
174
- <dt>MANAGED_MEMORY</dt>
175
-
176
- <dd>
177
- If <code>true</code>, RMagick is using Ruby managed memory
178
- for all allocations. If <code>false</code>, RMagick allocates
179
- memory for objects directly from the operating system. You
180
- can enable RMagick to use Ruby managed memory (when built
181
- with ImageMagick 6.4.0-11 and later) by setting
182
- <pre>
183
-
184
- RMAGICK_ENABLE_MANAGED_MEMORY = true
185
- </pre><em>before</em> requiring RMagick.
186
- </dd>
187
-
188
- <dt>QuantumRange</dt>
189
-
190
- <dd>The maximum value of a <em>Quantum</em>. A quantum is one
191
- of the red, green, blue, or opacity elements of a pixel in the
192
- RGB colorspace, or cyan, yellow, magenta, or black elements in
193
- the CYMK colorspace.</dd>
194
-
195
- <dt>MaxRGB <i>(deprecated)</i></dt>
196
-
197
- <dd>Same as QuantumRange.</dd>
198
-
199
- <dt>QuantumDepth</dt>
200
-
201
- <dd>
202
- The number of bits in a quantum. The relationship between
203
- QuantumDepth and QuantumRange is summarized in this table.
204
-
205
- <table summary="number of bits in a quantum" id="maxrgb">
206
- <tr>
207
- <th>QuantumDepth</th>
208
-
209
- <th>QuantumRange</th>
210
- </tr>
211
-
212
- <tr>
213
- <td>8</td>
214
-
215
- <td>255</td>
216
- </tr>
217
-
218
- <tr>
219
- <td>16</td>
220
-
221
- <td>65535</td>
222
- </tr>
223
-
224
- <tr>
225
- <td>32</td>
226
-
227
- <td>4294967295</td>
228
- </tr>
229
- </table>
230
- </dd>
231
-
232
- <dt>Version</dt>
233
-
234
- <dd>The RMagick version string. This has the form:<br />
235
- <code>RMagick 2.0.0</code></dd>
236
- </dl>
237
-
238
- <h3 class="const" id="AlignType">AlignType</h3>
239
-
240
- <p>Specify text alignment. See <a href=
241
- "draw.html#Draw.align_eq">align=</a>, <a href=
242
- "draw.html#Draw.text_align">text_align</a>.</p>
243
-
244
- <dl>
245
- <dt>UndefinedAlign</dt>
246
-
247
- <dd>No alignment specified. Equivalent to LeftAlign.</dd>
248
-
249
- <dt>LeftAlign</dt>
250
-
251
- <dd>Align the leftmost part of the text to the starting
252
- point.</dd>
253
-
254
- <dt>CenterAlign</dt>
255
-
256
- <dd>Center the text around the starting point.</dd>
257
-
258
- <dt>RightAlign</dt>
259
-
260
- <dd>Align the rightmost part of the text to the starting
261
- point.</dd>
262
- </dl>
263
-
264
- <h3 class="const" id="ChannelType">ChannelType</h3>
265
-
266
- <p>Specify an image channel. A channel is a color component of a
267
- pixel. In the RGB colorspace the channels are red, green, and
268
- blue. There may also be an alpha (transparency/opacity) channel.
269
- In the CMYK colorspace the channels area cyan, magenta, yellow,
270
- and black. In the HSL colorspace the channels are hue,
271
- saturation, and lightness. In the Gray colorspace the only
272
- channel is gray. See <a href=
273
- "image1.html#channel">Image#channel</a> and <a href=
274
- "info.html#channel">Image::Info#channel=</a>.</p>
275
-
276
- <dl>
277
- <dt>UndefinedChannel</dt>
278
-
279
- <dt>RedChannel</dt>
280
-
281
- <dt>GreenChannel</dt>
282
-
283
- <dt>BlueChannel</dt>
284
-
285
- <dt>CyanChannel</dt>
286
-
287
- <dt>MagentaChannel</dt>
288
-
289
- <dt>YellowChannel</dt>
290
-
291
- <dt>BlackChannel</dt>
292
-
293
- <dt>OpacityChannel</dt>
294
-
295
- <dt>AllChannels</dt>
296
-
297
- <dd>In the RGB colorspace, the red, blue, green, and alpha
298
- channels. In the CMYK colorspace, the cyan, magenta, yellow,
299
- and black channels.</dd>
300
-
301
- <dt>GrayChannel</dt>
302
-
303
- <dt>AlphaChannel</dt>
304
-
305
- <dd>Same as OpacityChannel</dd>
306
-
307
- <dt>DefaultChannels</dt>
308
-
309
- <dd>Same as AllChannels, excluding OpacityChannel</dd>
310
-
311
- <dt>HueChannel</dt>
312
-
313
- <dt>LuminosityChannel</dt>
314
-
315
- <dt>SaturationChannel</dt>
316
- </dl>
317
-
318
- <h3 class="const" id="ClassType">ClassType</h3>
319
-
320
- <p>Specify the image storage class. See <a href=
321
- "imageattrs.html#class_type">class_type</a>.</p>
322
-
323
- <dl>
324
- <dt>UndefinedClass</dt>
325
-
326
- <dd>No storage class has been specified.</dd>
327
-
328
- <dt>DirectClass</dt>
329
-
330
- <dd class="imquote">Image is composed of pixels which represent
331
- literal color values.</dd>
332
-
333
- <dt>PseudoClass</dt>
334
-
335
- <dd class="imquote">Image is composed of pixels which specify
336
- an index in a color palette.</dd>
337
- </dl>
338
-
339
- <h3 class="const" id="ColorspaceType">ColorspaceType</h3>
340
-
341
- <p class="imquote">Specify the colorspace that quantization
342
- (color reduction and mapping) is done under or to specify the
343
- colorspace when encoding an output image. Colorspaces are ways of
344
- describing colors to fit the requirements of a particular
345
- application (e.g. Television, offset printing, color
346
- monitors).&nbsp; Color reduction, by default, takes place in the
347
- RGBColorspace. Empirical evidence suggests that distances in
348
- color spaces such as YUVColorspace or YIQColorspace correspond to
349
- perceptual color differences more closely than do distances in
350
- RGB space. These color spaces may give better results when color
351
- reducing an image.</p>
352
-
353
- <p><span class="imquote">When encoding an output image, the
354
- colorspaces RGBColorspace, CMYKColorspace, and GRAYColorspace may
355
- be specified. The CMYKColorspace option is only applicable when
356
- writing TIFF, JPEG, and Adobe Photoshop bitmap (PSD)
357
- files.</span> See <a href=
358
- "imageattrs.html#colorspace">colorspace</a>.</p>
359
-
360
- <p>Each version of ImageMagick defines a subset of the
361
- colorspaces listed below. To list the subset supported by your
362
- version, issue the command:</p>
363
- <pre class="example">
364
- ruby -rRMagick -e"Magick::ColorspaceType.values {|cs| puts cs}"
365
- </pre>
366
-
367
- <dl>
368
- <dt>UndefinedColorspace</dt>
369
-
370
- <dd>No colorspace has been specified.</dd>
371
-
372
- <dt>CMYColorspace</dt>
373
-
374
- <dt>CMYKColorspace</dt>
375
-
376
- <dd class="imquote">Cyan-Magenta-Yellow-Black colorspace. CYMK
377
- is a subtractive color system used by printers and
378
- photographers for the rendering of colors with ink or emulsion,
379
- normally on a white surface.</dd>
380
-
381
- <dt>GRAYColorspace</dt>
382
-
383
- <dd>Full-range grayscale</dd>
384
-
385
- <dt>HSBColorspace</dt>
386
-
387
- <dt>HSLColorspace</dt>
388
-
389
- <dd>Hue, saturation, luminosity</dd>
390
-
391
- <dt>HWBColorspace</dt>
392
-
393
- <dd>Hue, whiteness, blackness</dd>
394
-
395
- <dt>LABColorspace</dt>
396
-
397
- <dt>LogColorspace</dt>
398
-
399
- <dt>OHTAColorspace</dt>
400
-
401
- <dt>RGBColorspace</dt>
402
-
403
- <dd class="imquote">Red-Green-Blue colorspace</dd>
404
-
405
- <dt>SRGBColorspace</dt>
406
-
407
- <dd>Kodak PhotoCD sRGB. In ImageMagick, this constant is named
408
- sRGBColorspace, but since Ruby constants must start with an
409
- uppercase letter, I had to change it.</dd>
410
-
411
- <dt>TransparentColorspace</dt>
412
-
413
- <dd class="imquote">The Transparent color space behaves
414
- uniquely in that it preserves the matte channel of the image if
415
- it exists.</dd>
416
-
417
- <dt>XYZColorspace</dt>
418
-
419
- <dd>CIE XYZ</dd>
420
-
421
- <dt>YCbCrColorspace</dt>
422
-
423
- <dt>YCCColorspace</dt>
424
-
425
- <dd>Kodak PhotoCD PhotoYCC</dd>
426
-
427
- <dt>YIQColorspace</dt>
428
-
429
- <dt>YPbPrColorspace</dt>
430
-
431
- <dt>YUVColorspace</dt>
432
-
433
- <dd class="imquote">Y-signal, U-signal, and V-signal
434
- colorspace. YUV is most widely used to encode color for use in
435
- television transmission.</dd>
436
- </dl>
437
-
438
- <p>The colorspaces in this group are typically associated with
439
- the DPX and Cineon image formats used in the motion picture
440
- industry.</p>
441
-
442
- <dl>
443
- <dt>Rec601LumaColorspace</dt>
444
-
445
- <dd>Luma (Y) according to ITU-R 601</dd>
446
-
447
- <dt>Rec601YCbCrColorspace</dt>
448
-
449
- <dd>YCbCr according to ITU-R 601</dd>
450
-
451
- <dt>Rec709LumaColorspace</dt>
452
-
453
- <dd>Luma (Y) according to ITU-R 709</dd>
454
-
455
- <dt>Rec709YCbCrColorspace</dt>
456
-
457
- <dd>YCbCr according to ITU-R 709</dd>
458
- </dl>
459
-
460
- <h3 class="const" id="ComplianceType">ComplianceType</h3>
461
-
462
- <p>Specify the color standard from which color names are chosen.
463
- See <a href="struct.html#Pixel">to_color</a>.</p>
464
-
465
- <dl>
466
- <dt>SVGCompliance</dt>
467
-
468
- <dd>Adhere to SVG color standard.</dd>
469
-
470
- <dt>X11Compliance</dt>
471
-
472
- <dd>Adhere to X11 color standard.</dd>
473
-
474
- <dt>XPMCompliance</dt>
475
-
476
- <dd>Adhere to XPM color standard.</dd>
477
-
478
- <dt>AllCompliance</dt>
479
-
480
- <dd>The union of the 3 color standards.</dd>
481
- </dl>
482
-
483
- <h3 class="const" id="CompositeOperator">CompositeOperator</h3>
484
-
485
- <p><span class="imquote">Select the image composition algorithm
486
- used to compose a <code>composite image</code> with a
487
- <code>image</code>. By default, each of the <code>composite
488
- image</code> pixels are replaced by the corresponding
489
- <code>image</code> tile pixel. Specify
490
- <code>CompositeOperator</code> to select a different
491
- algorithm.</span> See <a href=
492
- "image1.html#composite">composite</a>.</p>
493
-
494
- <dl>
495
- <dt>UndefinedCompositeOp</dt>
496
-
497
- <dd>No composite operator has been specified.</dd>
498
-
499
- <dt>AddCompositeOp</dt>
500
-
501
- <dd class="imquote">The result of <code>composite image</code>
502
- + <code>image</code>, with overflow wrapping around (mod
503
- 256).</dd>
504
-
505
- <dt>AtopCompositeOp</dt>
506
-
507
- <dd class="imquote">The result is the same shape as
508
- <code>image</code>, with <code>composite image</code> obscuring
509
- <code>image</code> where the image shapes overlap. Note that
510
- this differs from OverCompositeOp because the portion of
511
- <code>composite image</code> outside of <code>image</code>'s
512
- shape does not appear in the result.</dd>
513
-
514
- <dt>BlurCompositeOp</dt>
515
-
516
- <dd>?</dd>
517
-
518
- <dt>BumpmapCompositeOp</dt>
519
-
520
- <dd class="imquote">The result <code>image</code> shaded by
521
- <code>composite image</code>.</dd>
522
-
523
- <dt>ChangeMaskCompositeOp</dt>
524
-
525
- <dd class="imquote">Replace any destination pixel that is the
526
- similar to the source image's pixel (as defined by the current
527
- fuzz factor), with transparency.</dd>
528
-
529
- <dt>ClearCompositeOp</dt>
530
-
531
- <dd>Make the target image transparent. The composite image is
532
- ignored.</dd>
533
-
534
- <dt>ColorBurnCompositeOp</dt>
535
-
536
- <dd class="imquote">Darkens the destination color to reflect
537
- the source color. Painting with white produces no change.</dd>
538
-
539
- <dt>ColorDodgeCompositeOp</dt>
540
-
541
- <dd class="imquote">Brightens the destination color to reflect
542
- the source color. Painting with black produces no change.</dd>
543
-
544
- <dt>ColorizeCompositeOp</dt>
545
-
546
- <dd class="imquote">Each pixel in the result image is the
547
- combination of the brightness of the target image and the
548
- saturation and hue of the composite image. This is the
549
- <em>opposite</em> of LuminizeCompositeOp.</dd>
550
-
551
- <dt>CopyCompositeOp</dt>
552
-
553
- <dd>Replace the target image with the composite image.</dd>
554
-
555
- <dt>CopyBlackCompositeOp</dt>
556
-
557
- <dd>Copy the black channel from the composite image to the
558
- target image.</dd>
559
-
560
- <dt>CopyBlueCompositeOp</dt>
561
-
562
- <dd>Copy the blue channel from the composite image to the
563
- target image.</dd>
564
-
565
- <dt>CopyCyanCompositeOp</dt>
566
-
567
- <dd>Copy the cyan channel from the composite image to the
568
- target image.</dd>
569
-
570
- <dt>CopyGreenCompositeOp</dt>
571
-
572
- <dd>Copy the green channel from the composite image to the
573
- target image.</dd>
574
-
575
- <dt>CopyMagentaCompositeOp</dt>
576
-
577
- <dd>Copy the magenta channel from the composite image to the
578
- target image.</dd>
579
-
580
- <dt>CopyOpacityCompositeOp</dt>
581
-
582
- <dd>If the composite image's <a href=
583
- "imageattrs.html#matte">matte</a> attribute is
584
- <code>true</code>, copy the opacity channel from the composite
585
- image to the target image. Otherwise, set the target image
586
- pixel's opacity to the intensity of the corresponding pixel in
587
- the composite image.</dd>
588
-
589
- <dt>CopyRedCompositeOp</dt>
590
-
591
- <dd>Copy the red channel from the composite image to the target
592
- image.</dd>
593
-
594
- <dt>CopyYellowCompositeOp</dt>
595
-
596
- <dd>Copy the yellow channel from the composite image to the
597
- target image.</dd>
598
-
599
- <dt>DarkenCompositeOp</dt>
600
-
601
- <dd>Replace target image pixels with darker pixels from the
602
- composite image.</dd>
603
-
604
- <dt>DifferenceCompositeOp</dt>
605
-
606
- <dd class="imquote">The result of abs(<code>composite
607
- image</code> - <code>image</code>). This is useful for
608
- comparing two very similar images.</dd>
609
-
610
- <dt>DisplaceCompositeOp</dt>
611
-
612
- <dd>Displace target image pixels as defined by a displacement
613
- map. The operator used by the <a href=
614
- "image1.html#displace">displace</a> method.</dd>
615
-
616
- <dt>DissolveCompositeOp</dt>
617
-
618
- <dd>The operator used in the <a href=
619
- "image1.html#dissolve">dissolve</a> method.</dd>
620
-
621
- <dt>DistortCompositeOp</dt>
622
-
623
- <dd>?</dd>
624
-
625
- <dt>DivideCompositeOp</dt>
626
-
627
- <dd>?</dd>
628
-
629
- <dt>DstCompositeOp</dt>
630
-
631
- <dd class="imquote">The destination is left untouched.</dd>
632
-
633
- <dt>DstAtopCompositeOp</dt>
634
-
635
- <dd class="imquote">The part of the destination lying inside of
636
- the source is composited over the source and replaces the
637
- destination.</dd>
638
-
639
- <dt>DstInCompositeOp</dt>
640
-
641
- <dd class="imquote">The part of the destination lying inside of
642
- the source replaces the destination.</dd>
643
-
644
- <dt>DstOutCompositeOp</dt>
645
-
646
- <dd class="imquote">The part of the destination lying outside
647
- of the source replaces the destination.</dd>
648
-
649
- <dt>DstOverCompositeOp</dt>
650
-
651
- <dd class="imquote">The destination is composited over the
652
- source and the result replaces the destination.</dd>
653
-
654
- <dt>ExclusionCompositeOp</dt>
655
-
656
- <dd class="imquote">Produces an effect similar to that of
657
- 'difference', but appears as lower contrast. Painting with
658
- white inverts the destination color. Painting with black
659
- produces no change.</dd>
660
-
661
- <dt>HardLightCompositeOp</dt>
662
-
663
- <dd class="imquote">Multiplies or screens the colors, dependent
664
- on the source color value. If the source color is lighter than
665
- 0.5, the destination is lightened as if it were screened. If
666
- the source color is darker than 0.5, the destination is
667
- darkened, as if it were multiplied. The degree of lightening or
668
- darkening is proportional to the difference between the source
669
- color and 0.5. If it is equal to 0.5 the destination is
670
- unchanged. Painting with pure black or white produces black or
671
- white.</dd>
672
-
673
- <dt>HueCompositeOp</dt>
674
-
675
- <dd class="imquote">Each pixel in the result image is the
676
- combination of the hue of the target image and the saturation
677
- and brightness of the composite image.</dd>
678
-
679
- <dt>InCompositeOp</dt>
680
-
681
- <dd class="imquote">The result is simply <code>composite
682
- image</code> cut by the shape of <code>image</code>. None of
683
- the image data of <code>image</code> is included in the
684
- result.</dd>
685
-
686
- <dt>LightenCompositeOp</dt>
687
-
688
- <dd>Replace target image pixels with lighter pixels from the
689
- composite image.</dd>
690
-
691
- <dt>LinearBurnCompositeOp</dt>
692
-
693
- <dd>Same as <code>LinearDodgeCompositeOp</code>, but also
694
- subtract one from the result. Sort of a additive 'Screen' of
695
- the images.</dd>
696
-
697
- <dt>LinearDodgeCompositeOp</dt>
698
-
699
- <dd class="imquote">This is equivelent to
700
- <code>PlusCompositeOp</code> in that the color channels are
701
- simply added, however it does not "plus" the alpha channel, but
702
- uses the normal <code>OverCompositeOp</code> alpha blending,
703
- which transparencies are involved. Produces a sort of additive
704
- multiply-like result.</dd>
705
-
706
- <dt>LinearLightCompositeOp</dt>
707
-
708
- <dd class="imquote">Increase contrast slightly with an impact
709
- on the foreground's tonal values.</dd>
710
-
711
- <dt>LuminizeCompositeOp</dt>
712
-
713
- <dd class="imquote">Each pixel in the result image is the
714
- combination of the brightness of the composite image and the
715
- saturation and hue of the target image. This is the
716
- <em>opposite</em> of ColorizeCompositeOp.</dd>
717
-
718
- <dt>MinusCompositeOp</dt>
719
-
720
- <dd class="imquote">The result of composite image - image, with
721
- overflow cropped to zero. The matte chanel is ignored (set to
722
- 255, full coverage).</dd>
723
-
724
- <dt>ModulateCompositeOp</dt>
725
-
726
- <dd>Used by the <a href="image3.html#watermark">watermark</a>
727
- method.</dd>
728
-
729
- <dt>MultiplyCompositeOp</dt>
730
-
731
- <dd class="imquote">Multiplies the color of each target image
732
- pixel by the color of the corresponding composite image pixel.
733
- The result color is always darker.</dd>
734
-
735
- <dt>NoCompositeOp</dt>
736
-
737
- <dd>No composite operator has been specified.</dd>
738
-
739
- <dt>OutCompositeOp</dt>
740
-
741
- <dd class="imquote">The resulting image is <code>composite
742
- image</code> with the shape of <code>image</code> cut out.</dd>
743
-
744
- <dt>OverCompositeOp</dt>
745
-
746
- <dd><span class="imquote">The result is the union of the the
747
- two image shapes with <code>composite image</code> obscuring
748
- <code>image</code> in the region of overlap.</span> The matte
749
- channel of the composite image is respected, so that if the
750
- composite pixel is part or all transparent, the corresponding
751
- image pixel will show through.</dd>
752
-
753
- <dt>OverlayCompositeOp</dt>
754
-
755
- <dd class="imquote">Multiplies or screens the colors, dependent
756
- on the destination color. Source colors overlay the destination
757
- whilst preserving its highlights and shadows. The destination
758
- color is not replaced, but is mixed with the source color to
759
- reflect the lightness or darkness of the destination.</dd>
760
-
761
- <dt>PegtopLightCompositeOp</dt>
762
-
763
- <dd class="imquote">Almost equivalent to
764
- <code>SoftLightCompositeOp</code>, but using a continuious
765
- mathematical formula rather than two conditionally selected
766
- formulae.</dd>
767
-
768
- <dt>PinLightCompositeOp</dt>
769
-
770
- <dd class="imquote">Similar to
771
- <code>HardLightCompositeOp</code>, but using sharp linear
772
- shadings, to similate the effects of a strong 'pinhole' light
773
- source.</dd>
774
-
775
- <dt>PlusCompositeOp</dt>
776
-
777
- <dd class="imquote">The result is just the sum of the image
778
- data. Output values are cropped to 255 (no overflow). This
779
- operation is independent of the matte channels.</dd>
780
-
781
- <dt>ReplaceCompositeOp</dt>
782
-
783
- <dd class="imquote">The resulting image is image replaced with
784
- composite image. Here the matte information is ignored.</dd>
785
-
786
- <dt>SaturateCompositeOp</dt>
787
-
788
- <dd>Each pixel in the result image is the combination of the
789
- saturation of the target image and the hue and brightness of
790
- the composite image.</dd>
791
-
792
- <dt>ScreenCompositeOp</dt>
793
-
794
- <dd>Multiplies the inverse of each image's color
795
- information.</dd>
796
-
797
- <dt>SoftLightCompositeOp</dt>
798
-
799
- <dd class="imquote">Darkens or lightens the colors, dependent
800
- on the source color value. If the source color is lighter than
801
- 0.5, the destination is lightened. If the source color is
802
- darker than 0.5, the destination is darkened, as if it were
803
- burned in. The degree of darkening or lightening is
804
- proportional to the difference between the source color and
805
- 0.5. If it is equal to 0.5, the destination is unchanged.
806
- Painting with pure black or white produces a distinctly darker
807
- or lighter area, but does not result in pure black or
808
- white.</dd>
809
-
810
- <dt>SrcAtopCompositeOp</dt>
811
-
812
- <dd class="imquote">The part of the source lying inside of the
813
- destination is composited onto the destination.</dd>
814
-
815
- <dt>SrcCompositeOp</dt>
816
-
817
- <dd class="imquote">The source is copied to the destination.
818
- The destination is not used as input.</dd>
819
-
820
- <dt>SrcInCompositeOp</dt>
821
-
822
- <dd class="imquote">he part of the source lying inside of the
823
- destination replaces the destination.</dd>
824
-
825
- <dt>SrcOutCompositeOp</dt>
826
-
827
- <dd class="imquote">The part of the source lying outside of the
828
- destination replaces the destination.</dd>
829
-
830
- <dt>SrcOverCompositeOp</dt>
831
-
832
- <dd class="imquote">The source is composited over the
833
- destination.</dd>
834
-
835
- <dt>SubtractCompositeOp</dt>
836
-
837
- <dd class="imquote">The result of <code>composite image</code>
838
- - <code>image</code>, with underflow wrapping around (mod 256).
839
- The add and subtract operators can be used to perform
840
- reversable transformations.</dd>
841
-
842
- <dt>ThresholdCompositeOp</dt>
843
-
844
- <dd>?</dd>
845
-
846
- <dt>VividLightCompositeOp</dt>
847
-
848
- <dd class="imquote">A modified
849
- <code>LinearLightCompositeOp</code> designed to preserve very
850
- stong primary and secondary colors in the image.</dd>
851
-
852
- <dt>XorCompositeOp</dt>
853
-
854
- <dd class="imquote">The result is the image data from both
855
- <code>composite image</code> and <code>image</code> that is
856
- outside the overlap region. The overlap region will be
857
- blank.</dd>
858
- </dl>
859
-
860
- <h3 class="const" id="CompressionType">CompressionType</h3>
861
-
862
- <p><span class="imquote">Express the desired compression type
863
- when encoding an image. Be aware that most image types only
864
- support a sub-set of the available compression types. If the
865
- compression type specified is incompatible with the image,
866
- ImageMagick selects a compression type compatible with the image
867
- type.</span> See <a href=
868
- "imageattrs.html#compression">compression</a>.</p>
869
-
870
- <dl>
871
- <dt>UndefinedCompression</dt>
872
-
873
- <dd>No compression type has been specified.</dd>
874
-
875
- <dt>NoCompression</dt>
876
-
877
- <dd>The default for most formats.</dd>
878
-
879
- <dt>B44Compression</dt>
880
-
881
- <dd>Available in ImageMagick 6.5.5-4 and later.</dd>
882
-
883
- <dt>B44ACompression</dt>
884
-
885
- <dd>Available in ImageMagick 6.5.5-4 and later.</dd>
886
-
887
- <dt>BZipCompression</dt>
888
-
889
- <dd class="imquote">BZip (Burrows-Wheeler block-sorting text
890
- compression algorithm and Huffman coding) as used by bzip2
891
- utilities</dd>
892
-
893
- <dt>DXT1Compression</dt>
894
-
895
- <dd>Available in ImageMagick 6.3.9-3 and later.</dd>
896
-
897
- <dt>DXT3Compression</dt>
898
-
899
- <dd>Available in ImageMagick 6.3.9-3 and later.</dd>
900
-
901
- <dt>DXT5Compression</dt>
902
-
903
- <dd>Available in ImageMagick 6.3.9-3 and later.</dd>
904
-
905
- <dt>FaxCompression</dt>
906
-
907
- <dd class="imquote">CCITT Group 3 FAX compression</dd>
908
-
909
- <dt>Group4Compression</dt>
910
-
911
- <dd class="imquote">CCITT Group 4 FAX compression (used only
912
- for TIFF)</dd>
913
-
914
- <dt>JPEGCompression</dt>
915
-
916
- <dd>JPEG compression. See <a href=
917
- "http://www.faqs.org/faqs/jpeg-faq/part1/">The JPEG image
918
- compression FAQ</a>.</dd>
919
-
920
- <dt>JPEG2000Compression</dt>
921
-
922
- <dd>JPEG2000 compression for compressed PDF images.</dd>
923
-
924
- <dt>LosslessJPEGCompression</dt>
925
-
926
- <dd>This compression format is almost never used.</dd>
927
-
928
- <dt>LZWCompression</dt>
929
-
930
- <dd class="imquote">Lempel-Ziv-Welch (LZW) compression</dd>
931
-
932
- <dt>PizCompression</dt>
933
-
934
- <dd>Available in ImageMagick 6.5.5-4 and later.</dd>
935
-
936
- <dt>Pxr24Compression</dt>
937
-
938
- <dd>Available in ImageMagick 6.5.5-4 and later.</dd>
939
-
940
- <dt>RLECompression</dt>
941
-
942
- <dd>See the Wikipedia page for <a href=
943
- "http://en.wikipedia.org/wiki/Run_length_encoding">Run-length
944
- encoding</a>.</dd>
945
-
946
- <dt>ZipCompression</dt>
947
-
948
- <dd class="imquote">Lempel-Ziv compression (LZ77) as used in
949
- PKZIP and GNU gzip.</dd>
950
-
951
- <dt>ZipSCompression</dt>
952
-
953
- <dd>Available in ImageMagick 6.5.5-4 and later.</dd>
954
- </dl>
955
-
956
- <h3 class="const" id="DecorationType">DecorationType</h3>
957
-
958
- <p>Use with the <a href="draw.html#decorate">decorate=</a> method
959
- in the Draw class to specify the text decoration for the <a href=
960
- "draw.html#annotate">annotate</a> method.</p>
961
-
962
- <dl>
963
- <dt>NoDecoration</dt>
964
-
965
- <dd>Don't decorate the text.</dd>
966
-
967
- <dt>UnderlineDecoration</dt>
968
-
969
- <dd>Underline the text.</dd>
970
-
971
- <dt>OverlineDecoration</dt>
972
-
973
- <dd>Overline the text.</dd>
974
-
975
- <dt>LineThroughDecoration</dt>
976
-
977
- <dd>Draw a horizontal line through the middle of the text.</dd>
978
- </dl>
979
-
980
- <h3 class="const" id="DisposeType">DisposeType</h3>
981
-
982
- <p>The value of the <a href="imageattrs.html#dispose">dispose</a>
983
- attribute.</p>
984
-
985
- <dl>
986
- <dt>UndefinedDispose</dt>
987
-
988
- <dd>No disposal specified.</dd>
989
-
990
- <dt>NoneDispose</dt>
991
-
992
- <dd>Do not dispose between frames.</dd>
993
-
994
- <dt>BackgroundDispose</dt>
995
-
996
- <dd>Overwrite the image area with the background color.</dd>
997
-
998
- <dt>PreviousDispose</dt>
999
-
1000
- <dd>Overwrite the image area with what was there prior to
1001
- rendering the image.</dd>
1002
- </dl>
1003
-
1004
- <h3 class="const" id="DitherMethod">DitherMethod</h3>
1005
-
1006
- <p>Specify the method of dithering for <a href=
1007
- "image1.html#remap">remap</a>, <a href=
1008
- "image3.html#quantize">quantize</a>, <a href=
1009
- "image3.html#posterize">posterize</a>, etc.</p>
1010
-
1011
- <dl>
1012
- <dt>NoDitherMethod</dt>
1013
-
1014
- <dt>RiemersmaDitherMethod</dt>
1015
-
1016
- <dt>FloydSteinbergDitherMethod</dt>
1017
- </dl>
1018
-
1019
- <h3 class="const" id="EndianType">EndianType</h3>
1020
-
1021
- <p>The value of the <a href="info.html#endian">endian</a>
1022
- attribute.</p>
1023
-
1024
- <dl>
1025
- <dt>UndefinedEndian</dt>
1026
-
1027
- <dt>LSBEndian</dt>
1028
-
1029
- <dt>MSBEndian</dt>
1030
- </dl>
1031
-
1032
- <h3 class="const" id="FilterTypes">FilterTypes</h3>
1033
-
1034
- <p><span class="imquote">Used to adjust the filter algorithm used
1035
- when resizing images. Different filters experience varying
1036
- degrees of success with various images and can take significantly
1037
- different amounts of processing time. ImageMagick uses the
1038
- LanczosFilter by default since this filter has been shown to
1039
- provide the best results for most images in a reasonable amount
1040
- of time. Other filter types (e.g. TriangleFilter) may execute
1041
- much faster but may show artifacts when the image is re-sized or
1042
- around diagonal lines. The only way to be sure is to test the
1043
- filter with sample images.</span> See <a href=
1044
- "image3.html#resize">resize</a>.</p>
1045
-
1046
- <dl>
1047
- <dt>UndefinedFilter</dt>
1048
-
1049
- <dt>Bartlett</dt>
1050
-
1051
- <dt>BesselFilter</dt>
1052
-
1053
- <dt>BlackmanFilter</dt>
1054
-
1055
- <dt>Bohman</dt>
1056
-
1057
- <dt>BoxFilter</dt>
1058
-
1059
- <dt>CatromFilter</dt>
1060
-
1061
- <dt>CubicFilter</dt>
1062
-
1063
- <dt>GaussianFilter</dt>
1064
-
1065
- <dt>HammingFilter</dt>
1066
-
1067
- <dt>HanningFilter</dt>
1068
-
1069
- <dt>HermiteFilter</dt>
1070
-
1071
- <dt>KaiserFilter</dt>
1072
-
1073
- <dt>LagrangianFilter</dt>
1074
-
1075
- <dt>LanczosFilter</dt>
1076
-
1077
- <dt>MitchellFilter</dt>
1078
-
1079
- <dt>ParzenFilter</dt>
1080
-
1081
- <dt>PointFilter</dt>
1082
-
1083
- <dt>QuadraticFilter</dt>
1084
-
1085
- <dt>SincFilter</dt>
1086
-
1087
- <dt>TriangleFilter</dt>
1088
-
1089
- <dt>WelshFilter</dt>
1090
- </dl>
1091
-
1092
- <h3 class="const" id="GravityType">GravityType</h3>
1093
-
1094
- <p><span class="imquote">Specify positioning of an object (e.g.
1095
- text, image) within a bounding region (e.g. an image). Gravity
1096
- provides a convenient way to locate objects irrespective of the
1097
- size of the bounding region, in other words, you don't need to
1098
- provide absolute coordinates in order to position an object. A
1099
- common default for gravity is <em>NorthWestGravity</em>.</span>
1100
- See <a href="draw.html#annotate">annotate</a> and <a href=
1101
- "image1.html#composite">composite</a>.</p>
1102
-
1103
- <dl>
1104
- <dt>ForgetGravity</dt>
1105
-
1106
- <dd class="imquote">Don't use gravity.</dd>
1107
-
1108
- <dt>NorthWestGravity</dt>
1109
-
1110
- <dd class="imquote">Position object at top-left of region</dd>
1111
-
1112
- <dt>NorthGravity</dt>
1113
-
1114
- <dd class="imquote">Position object at top-center of
1115
- region</dd>
1116
-
1117
- <dt>NorthEastGravity</dt>
1118
-
1119
- <dd class="imquote">Position object at top-right of region</dd>
1120
-
1121
- <dt>WestGravity</dt>
1122
-
1123
- <dd class="imquote">Position object at left-center of
1124
- region</dd>
1125
-
1126
- <dt>CenterGravity</dt>
1127
-
1128
- <dd class="imquote">Position object at center of region</dd>
1129
-
1130
- <dt>EastGravity</dt>
1131
-
1132
- <dd class="imquote">Position object at right-center of
1133
- region</dd>
1134
-
1135
- <dt>SouthWestGravity</dt>
1136
-
1137
- <dd class="imquote">Position object at left-bottom of
1138
- region</dd>
1139
-
1140
- <dt>SouthGravity</dt>
1141
-
1142
- <dd class="imquote">Position object at bottom-center of
1143
- region</dd>
1144
-
1145
- <dt>SouthEastGravity</dt>
1146
-
1147
- <dd class="imquote">Position object at bottom-right of
1148
- region</dd>
1149
- </dl>
1150
-
1151
- <h3 class="const" id="ImageType">ImageType</h3>
1152
-
1153
- <p>Indicate <span class="imquote">the type classification of the
1154
- image.</span> See <a href=
1155
- "imageattrs.html#image_type">image_type</a> and <a href=
1156
- "info.html#image_type_eq">image_type=</a>.</p>
1157
-
1158
- <dl>
1159
- <dt>UndefinedType</dt>
1160
-
1161
- <dd>No type has been specified.</dd>
1162
-
1163
- <dt>BilevelType</dt>
1164
-
1165
- <dd class="imquote">Monochrome image</dd>
1166
-
1167
- <dt>GrayscaleType</dt>
1168
-
1169
- <dd class="imquote">Grayscale image</dd>
1170
-
1171
- <dt>PaletteType</dt>
1172
-
1173
- <dd class="imquote">Indexed color (palette) image</dd>
1174
-
1175
- <dt>PaletteMatteType</dt>
1176
-
1177
- <dd class="imquote">Indexed color (palette) image with
1178
- opacity</dd>
1179
-
1180
- <dt>TrueColorType</dt>
1181
-
1182
- <dd class="imquote">Truecolor image</dd>
1183
-
1184
- <dt>TrueColorMatteType</dt>
1185
-
1186
- <dd class="imquote">Truecolor image with opacity</dd>
1187
-
1188
- <dt>ColorSeparationType</dt>
1189
-
1190
- <dd class="imquote">Cyan/Yellow/Magenta/Black (CYMK) image</dd>
1191
-
1192
- <dt>ColorSeparationMatteType</dt>
1193
-
1194
- <dt>OptimizeType</dt>
1195
-
1196
- <dt>PaletteBilevelMatteType</dt>
1197
- </dl>
1198
-
1199
- <h3 class="const" id="InterlaceType">InterlaceType</h3>
1200
-
1201
- <p>Specify <span class="imquote">the ordering of the red, green,
1202
- and blue pixel information in the image. Interlacing is usually
1203
- used to make image information available to the user faster by
1204
- taking advantage of the space vs time tradeoff. For example,
1205
- interlacing allows images on the Web to be recognizable sooner
1206
- and satellite images to accumulate/render with image resolution
1207
- increasing over time. Use <code>LineInterlace</code> or
1208
- <code>PlaneInterlace</code> to create an interlaced GIF or
1209
- progressive JPEG image.</span> See <a href=
1210
- "imageattrs.html#interlace">interlace</a>.</p>
1211
-
1212
- <dl>
1213
- <dt>UndefinedInterlace</dt>
1214
-
1215
- <dd>No interlace type has been specified.</dd>
1216
-
1217
- <dt>NoInterlace</dt>
1218
-
1219
- <dd class="imquote">Don't interlace image
1220
- (RGBRGBRGBRGBRGBRGB...)</dd>
1221
-
1222
- <dt>LineInterlace</dt>
1223
-
1224
- <dd class="imquote">Use scanline interlacing
1225
- (RRR...GGG...BBB...RRR...GGG...BBB...)</dd>
1226
-
1227
- <dt>PlaneInterlace</dt>
1228
-
1229
- <dd class="imquote">Use plane interlacing
1230
- (RRRRRR...GGGGGG...BBBBBB...)</dd>
1231
-
1232
- <dt>PartitionInterlace</dt>
1233
-
1234
- <dd class="imquote">Similar to plane interlacing except that
1235
- the different planes are saved to individual files (e.g.
1236
- image.R, image.G, and image.B)</dd>
1237
-
1238
- <dt>GIFInterlace</dt>
1239
-
1240
- <dt>JPEGInterlace</dt>
1241
-
1242
- <dt>PNGInterlace</dt>
1243
-
1244
- <dd>See the ImageMagick documentation for the -interlace
1245
- option.</dd>
1246
- </dl>
1247
-
1248
- <h3 class="const" id="InterpolatePixelMethod">
1249
- InterpolatePixelMethod</h3>
1250
-
1251
- <p>The pixel color interpolation method. See <a href=
1252
- "imageattrs.html#pixel_interpolation_method">pixel_interpolation_method</a>.</p>
1253
-
1254
- <dl>
1255
- <dt>AverageInterpolatePixel</dt>
1256
-
1257
- <dt>BicubicInterpolatePixel</dt>
1258
-
1259
- <dt>BilinearInterpolatePixel</dt>
1260
-
1261
- <dt>FilterInterpolatePixel</dt>
1262
-
1263
- <dt>IntegerInterpolatePixel</dt>
1264
-
1265
- <dt>MeshInterpolatePixel</dt>
1266
-
1267
- <dt>NearestNeighborInterpolatePixel</dt>
1268
-
1269
- <dt>SplineInterpolatePixel</dt>
1270
- </dl>
1271
-
1272
- <p>For FilterInterpolatePixel, specify the filter with the
1273
- <a href="imageattrs.html#filter">filter</a> attribute. Specify
1274
- the sharpness with the <a href="imageattrs.html#blur">blur</a>
1275
- attribute.</p>
1276
-
1277
- <h3 class="const" id="MetricType">MetricType</h3>
1278
-
1279
- <p>The distortion metric type. See <a href=
1280
- "image1.html#compare_channel">compare_channel</a>, <a href=
1281
- "image1.html#distortion_channel">distortion_channel</a>.</p>
1282
-
1283
- <dl>
1284
- <dt>MeanAbsoluteErrorMetric</dt>
1285
-
1286
- <dt>MeanSquaredErrorMetric</dt>
1287
-
1288
- <dt>PeakAbsoluteErrorMetric</dt>
1289
-
1290
- <dt>PeakSignalToNoiseRatioMetric</dt>
1291
-
1292
- <dt>RootMeanSquaredErrorMetric</dt>
1293
- </dl>
1294
-
1295
- <h3 class="const" id="NoiseType">NoiseType</h3>
1296
-
1297
- <p><span class="imquote">Select the type of noise to be added to
1298
- the image.</span> See <a href=
1299
- "image1.html#add_noise">add_noise</a>.</p>
1300
-
1301
- <dl>
1302
- <dt>UniformNoise</dt>
1303
-
1304
- <dt>GaussianNoise</dt>
1305
-
1306
- <dt>MultiplicativeGaussianNoise</dt>
1307
-
1308
- <dt>ImpulseNoise</dt>
1309
-
1310
- <dt>LaplacianNoise</dt>
1311
-
1312
- <dt>PoissonNoise</dt>
1313
-
1314
- <dt>RandomNoise</dt>
1315
- </dl>
1316
-
1317
- <h3 class="const" id="Opacity">Opacity</h3>
1318
-
1319
- <p>represent the maximum and minimum levels of opacity. You can
1320
- specify a partial level of opacity by choosing a number between
1321
- OpaqueOpacity and TransparentOpacity. For example, 25% opacity is
1322
- <code>abs(Magick::TransparentOpacity-Magick::OpaqueOpacity) *
1323
- 0.25</code></p>
1324
-
1325
- <dl>
1326
- <dt>TransparentOpacity</dt>
1327
-
1328
- <dd>The minimum amount of opacity.</dd>
1329
-
1330
- <dt>OpaqueOpacity</dt>
1331
-
1332
- <dd>The maximum amount of opacity.</dd>
1333
- </dl>
1334
-
1335
- <h3 class="const" id="OrientationType">OrientationType</h3>
1336
-
1337
- <p>Specify the orientation of the image pixels. See <a href=
1338
- "imageattrs.html#orientation">Image#orientation</a> and <a href=
1339
- "info.html#orientation">Info#orientation</a>. See <a href=
1340
- "http://jpegclub.org/exif_orientation.html">http://jpegclub.org/exif_orientation.html</a>
1341
- for an explanation of these values.</p>
1342
-
1343
- <dl>
1344
- <dt>UndefinedOrientation</dt>
1345
-
1346
- <dt>TopLeftOrientation</dt>
1347
-
1348
- <dt>TopRightOrientation</dt>
1349
-
1350
- <dt>BottomRightOrientation</dt>
1351
-
1352
- <dt>BottomLeftOrientation</dt>
1353
-
1354
- <dt>LeftTopOrientation</dt>
1355
-
1356
- <dt>RightTopOrientation</dt>
1357
-
1358
- <dt>RightBottomOrientation</dt>
1359
-
1360
- <dt>LeftBottomOrientation</dt>
1361
- </dl>
1362
-
1363
- <h3 class="const" id="PaintMethod">PaintMethod</h3>
1364
-
1365
- <p class="imquote">Specify how pixel colors are to be replaced in
1366
- the image. See <a href=
1367
- "image2.html#matte_floodfill">matte_floodfill</a> and <a href=
1368
- "image3.html#texture_floodfill">texture_floodfill</a>.</p>
1369
-
1370
- <dl>
1371
- <dt>PointMethod</dt>
1372
-
1373
- <dd class="imquote">Replace pixel color at point.</dd>
1374
-
1375
- <dt>ReplaceMethod</dt>
1376
-
1377
- <dd class="imquote">Replace color for all image pixels matching
1378
- color at point.</dd>
1379
-
1380
- <dt>FloodfillMethod</dt>
1381
-
1382
- <dd class="imquote">Replace color for pixels surrounding point
1383
- until encountering pixel that fails to match color at
1384
- point.</dd>
1385
-
1386
- <dt>FillToBorderMethod</dt>
1387
-
1388
- <dd class="imquote">Replace color for pixels surrounding point
1389
- until encountering pixels matching border color.</dd>
1390
-
1391
- <dt>ResetMethod</dt>
1392
-
1393
- <dd class="imquote">Replace colors for <strong>all</strong>
1394
- pixels in image with fill color.</dd>
1395
- </dl>
1396
-
1397
- <h3 class="const" id="RenderingIntent">RenderingIntent</h3>
1398
-
1399
- <p><span class="imquote">Rendering intent is a concept defined by
1400
- ICC Spec ICC.1:1998-09, "File Format for Color Profiles".
1401
- ImageMagick uses RenderingIntent in order to support ICC Color
1402
- Profiles.</span></p>
1403
-
1404
- <p class="imquote">From the specification: "Rendering intent
1405
- specifies the style of reproduction to be used during the
1406
- evaluation of this profile in a sequence of profiles. It applies
1407
- specifically to that profile in the sequence and not to the
1408
- entire sequence. Typically, the user or application will set the
1409
- rendering intent dynamically at runtime or embedding time."</p>
1410
-
1411
- <p>See <a href=
1412
- "imageattrs.html#rendering_intent">rendering_intent</a>.</p>
1413
-
1414
- <dl>
1415
- <dt>UndefinedIntent</dt>
1416
-
1417
- <dd>No intent has been specified.</dd>
1418
-
1419
- <dt>SaturationIntent</dt>
1420
-
1421
- <dd class="imquote">A rendering intent that specifies the
1422
- saturation of the pixels in the image is preserved perhaps at
1423
- the expense of accuracy in hue and lightness.</dd>
1424
-
1425
- <dt>PerceptualIntent</dt>
1426
-
1427
- <dd class="imquote">A rendering intent that specifies the full
1428
- gamut of the image is compressed or expanded to fill the gamut
1429
- of the destination device. Gray balance is preserved but
1430
- colorimetric accuracy might not be preserved.</dd>
1431
-
1432
- <dt>AbsoluteIntent</dt>
1433
-
1434
- <dd class="imquote">Absolute colorimetric</dd>
1435
-
1436
- <dt>RelativeIntent</dt>
1437
-
1438
- <dd class="imquote">Relative colorimetric</dd>
1439
- </dl>
1440
-
1441
- <h3 class="const" id="ResolutionType">ResolutionType</h3>
1442
-
1443
- <p><span class="imquote">By default, ImageMagick defines
1444
- resolutions in pixels per inch. ResolutionType provides a means
1445
- to adjust this.</span> See <a href=
1446
- "imageattrs.html#units">units</a>.</p>
1447
-
1448
- <dl>
1449
- <dt>UndefinedResolution</dt>
1450
-
1451
- <dd>No resolution has been specified.</dd>
1452
-
1453
- <dt>PixelsPerInchResolution</dt>
1454
-
1455
- <dd class="imquote">Density specifications are specified in
1456
- units of pixels per inch (English units).</dd>
1457
-
1458
- <dt>PixelsPerCentimeterResolution</dt>
1459
-
1460
- <dd class="imquote">Density specifications are specified in
1461
- units of pixels per centimeter (metric units).</dd>
1462
- </dl>
1463
-
1464
- <h3 class="const" id="StretchType">StretchType</h3>
1465
-
1466
- <p>See <a href="draw.html#font_stretch_eq">font_stretch=</a>.</p>
1467
-
1468
- <dl>
1469
- <dt>NormalStretch</dt>
1470
-
1471
- <dt>UltraCondensedStretch</dt>
1472
-
1473
- <dt>ExtraCondensedStretch</dt>
1474
-
1475
- <dt>CondensedStretch</dt>
1476
-
1477
- <dt>SemiCondensedStretch</dt>
1478
-
1479
- <dt>SemiExpandedStretch</dt>
1480
-
1481
- <dt>ExpandedStretch</dt>
1482
-
1483
- <dt>ExtraExpandedStretch</dt>
1484
-
1485
- <dt>UltraExpandedStretch</dt>
1486
-
1487
- <dt>AnyStretch</dt>
1488
- </dl>
1489
-
1490
- <h3 class="const" id="StorageType">StorageType</h3>
1491
-
1492
- <p>See <a href="image2.html#import_pixels">import_pixels</a> and
1493
- <a href=
1494
- "image2.html#export_pixels_to_str">export_pixels_to_str</a>.</p>
1495
-
1496
- <dl>
1497
- <dt>CharPixel</dt>
1498
-
1499
- <dd>corresponds to a C <code>unsigned char</code>, range
1500
- 0-255.</dd>
1501
-
1502
- <dt>ShortPixel</dt>
1503
-
1504
- <dd>corresponds to a C <code>unsigned short</code>, range
1505
- 0-65535.</dd>
1506
-
1507
- <dt>IntegerPixel</dt>
1508
-
1509
- <dd>corresponds to a C <code>unsigned int</code>, range
1510
- 0-4294967295.</dd>
1511
-
1512
- <dt>LongPixel</dt>
1513
-
1514
- <dd>corresponds to a C <code>unsigned long</code>, range
1515
- 0-4294967295 (for 32-bit longs).</dd>
1516
-
1517
- <dt>FloatPixel</dt>
1518
-
1519
- <dd>corresponds to a C <code>float</code>, range 0.0-1.0.</dd>
1520
-
1521
- <dt>DoublePixel</dt>
1522
-
1523
- <dd>corresponds to a C <code>double</code>, range 0.0-1.0.</dd>
1524
-
1525
- <dt>QuantumPixel</dt>
1526
-
1527
- <dd>corresponds to the Quantum type used by ImageMagick, range
1528
- 0-QuantumRange.</dd>
1529
- </dl>
1530
-
1531
- <h3 class="const" id="StyleType">StyleType</h3>
1532
-
1533
- <p>See <a href="draw.html#font_style_eq">font_style=</a>.</p>
1534
-
1535
- <dl>
1536
- <dt>NormalStyle</dt>
1537
-
1538
- <dt>ItalicStyle</dt>
1539
-
1540
- <dt>ObliqueStyle</dt>
1541
-
1542
- <dt>AnyStyle</dt>
1543
- </dl>
1544
-
1545
- <h3 class="const" id="WeightType">WeightType</h3>
1546
-
1547
- <p>The font weight can be specified as one of 100, 200, 300, 400,
1548
- 500, 600, 700, 800, or 900, or one of the following constants.
1549
- See <a href="draw.html#font_weight_eq">font_weight=</a>.</p>
1550
-
1551
- <dl>
1552
- <dt>AnyWeight</dt>
1553
-
1554
- <dd>No weight specified.</dd>
1555
-
1556
- <dt>NormalWeight</dt>
1557
-
1558
- <dd>Equivalent to 400</dd>
1559
-
1560
- <dt>BoldWeight</dt>
1561
-
1562
- <dd>Equivalent to 700</dd>
1563
-
1564
- <dt>BolderWeight</dt>
1565
-
1566
- <dd>Increases weight by 100</dd>
1567
-
1568
- <dt>LighterWeight</dt>
1569
-
1570
- <dd>Decreases weight by 100</dd>
1571
- </dl>
1572
-
1573
- <p class="spacer"></p>
1574
-
1575
- <div class="nav">
1576
- &laquo; <a href="info.html">Prev</a> | <a href=
1577
- "index.html">Contents</a> | <a href="rvgtut.html">Next</a>
1578
- &raquo;
1579
- </div>
1580
- </body>
1581
- </html>