Image++.html 143 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <title>ImageMagick – Magick++, C++ API for ImageMagick: Image Class</title>
  7. <meta name="application-name" content="ImageMagick" />
  8. <meta name="description" content="" />
  9. <meta name="application-url" content="https://imagemagick.org" />
  10. <meta name="generator" content="PHP" />
  11. <meta name="keywords" content="magick++, c++, api, for, imagemagick:, image, class, image processing software" />
  12. <meta name="rating" content="GENERAL" />
  13. <meta name="robots" content="INDEX, FOLLOW" />
  14. <meta name="generator" content="ImageMagick Studio LLC" />
  15. <meta name="author" content="ImageMagick Studio LLC" />
  16. <meta name="revisit-after" content="2 DAYS" />
  17. <meta name="resource-type" content="document" />
  18. <meta name="copyright" content="Copyright (c) 1999-2020 ImageMagick Studio LLC" />
  19. <meta name="distribution" content="Global" />
  20. <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1" />
  21. <meta property='og:url' content='../../' />
  22. <meta property='og:title' content='ImageMagick' />
  23. <meta property='og:image' content='../../../../../../../../../../../images/logo.png' />
  24. <meta property='og:type' content='website' />
  25. <meta property='og:site_name' content='ImageMagick' />
  26. <meta property='og:description' content="Create, Edit, Compose, or Convert Digital Images" />
  27. <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
  28. <link href="Image++.html" rel="canonical" />
  29. <link href="../../../../../../../../../../../images/wand.png" rel="icon" />
  30. <link href="../../../../../../../../../../../images/wand.ico" rel="shortcut icon" />
  31. <link href="../../assets/magick.css" rel="stylesheet" />
  32. </head>
  33. <body>
  34. <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
  35. <div class="container-fluid">
  36. <a class="navbar-brand" href="../../"><img class="d-block" id="icon" alt="ImageMagick" width="32" height="32" src="../../../../../../../../../../../images/wand.ico"/></a>
  37. <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#magick-navbars" aria-controls="magick-navbars" aria-expanded="false" aria-label="Toggle navigation">
  38. <span class="navbar-toggler-icon"></span>
  39. </button>
  40. <div class="collapse navbar-collapse" id="magick-navbars">
  41. <ul class="navbar-nav me-auto mb-2 mb-md-0">
  42. <li class="nav-item">
  43. <a class="nav-link " href="../../www/index.html">Home</a>
  44. </li>
  45. <li class="nav-item">
  46. <a class="nav-link " href="../../www/download.html">Download</a>
  47. </li>
  48. <li class="nav-item">
  49. <a class="nav-link " href="../../www/command-line-tools.html">Tools</a>
  50. </li>
  51. <li class="nav-item">
  52. <a class="nav-link " href="../../www/command-line-processing.html">CLI</a>
  53. </li>
  54. <li class="nav-item">
  55. <a class="nav-link " href="../../www/develop.html">Develop</a>
  56. </li>
  57. <li class="nav-item">
  58. <a class="nav-link" target="_blank" href="https://github.com/ImageMagick/ImageMagick/discussions">Community</a>
  59. </li>
  60. <li class="nav-item">
  61. <iframe src="https://github.com/sponsors/ImageMagick/button" title="Sponsor ImageMagick" height="35" width="107" style="border: 0;"></iframe>
  62. </li>
  63. </ul>
  64. <form class="d-flex form-inline" action="../../../../../../../../https://imagemagick.org/script/search.php">
  65. <input class="form-control me-2" type="text" name="q" placeholder="Search" aria-label="Search">
  66. <button class="btn btn-outline-success" type="submit" name="sa">Search</button>
  67. </form>
  68. </div>
  69. </div>
  70. </nav>
  71. <div class="container">
  72. <script async="async" src="https://localhost/pagead/js/adsbygoogle.js"></script>
  73. <ins class="adsbygoogle"
  74. style="display:block"
  75. data-ad-client="ca-pub-3129977114552745"
  76. data-ad-slot="6345125851"
  77. data-full-width-responsive="true"
  78. data-ad-format="horizontal"></ins>
  79. <script>
  80. (adsbygoogle = window.adsbygoogle || []).push({});
  81. </script>
  82. </div>
  83. <main class="container">
  84. <div class="magick-template">
  85. <h1> Magick::Image Class</h1>
  86. <p class="navigation-index">[<a href="Image++.html#BLOBs">BLOBs</a> &#8226; <a href="Image++.html#Constructors">Constructors</a> &#8226; <a href="Image++.html#Image%20Manipulation%20Methods">Image Manipulation Methods</a> &#8226; <a href="Image++.html#Image%20Attributes">Image Attributes</a> &#8226; <a href="Image++.html#Raw%20Image%20Pixel%20Access">Low-Level Image Pixel Access</a>]</p>
  87. <div class="doc-section">
  88. <p>Image is the primary object in Magick++ and represents
  89. a single image frame (see <a href="http://www.imagemagick.org/Magick++/ImageDesign.html">design</a> ). The
  90. <a href="http://www.imagemagick.org/Magick++/STL.html">STL interface</a> <b>must</b> be used to operate on
  91. image sequences or images (e.g. of format GIF, TIFF, MIFF, Postscript,
  92. &amp; MNG) which are comprised of multiple image frames. Individual
  93. frames of a multi-frame image may be requested by adding array-style
  94. notation to the end of the file name (e.g. "animation.gif[3]" retrieves
  95. the fourth frame of a GIF animation. Various image manipulation
  96. operations may be applied to the image. Attributes may be set on the
  97. image to influence the operation of the manipulation operations. The <a
  98. href="http://www.imagemagick.org/Magick++/Pixels.html"> Pixels</a> class provides low-level access to
  99. image
  100. pixels. As a convenience, including <tt><font color="#663366">&lt;Magick++.h&gt;</font></tt>
  101. is sufficient in order to use the complete Magick++ API. The Magick++
  102. API is enclosed within the <i>Magick</i> namespace so you must either
  103. add the prefix "<tt> Magick::</tt> " to each class/enumeration name or
  104. add
  105. the statement "<tt> using namespace Magick;</tt>" after including the <tt>Magick++.h</tt>
  106. header.</p>
  107. <p>The preferred way to allocate Image objects is via automatic
  108. allocation (on the stack). There is no concern that allocating Image
  109. objects on the stack will excessively enlarge the stack since Magick++
  110. allocates all large data objects (such as the actual image data) from
  111. the heap. Use of automatic allocation is preferred over explicit
  112. allocation (via <i>new</i>) since it is much less error prone and
  113. allows use of C++ scoping rules to avoid memory leaks. Use of automatic
  114. allocation allows Magick++ objects to be assigned and copied just like
  115. the C++ intrinsic data types (e.g. '<i>int</i> '), leading to clear and
  116. easy to read code. Use of automatic allocation leads to naturally
  117. exception-safe code since if an exception is thrown, the object is
  118. automagically deallocated once the stack unwinds past the scope of the
  119. allocation (not the case for objects allocated via <i>new</i> ). </p>
  120. <p>Image is very easy to use. For example, here is a the source to a
  121. program which reads an image, crops it, and writes it to a new file
  122. (the
  123. exception handling is optional but strongly recommended): </p>
  124. <pre class="code">
  125. #include &lt;Magick++.h>
  126. #include &lt;iostream>
  127. using namespace std;
  128. using namespace Magick;
  129. int main(int argc,char **argv)
  130. {
  131. InitializeMagick(*argv);
  132. // Construct the image object. Separating image construction from the
  133. // the read operation ensures that a failure to read the image file
  134. // doesn't render the image object useless.
  135. Image image;
  136. try {
  137. // Read a file into image object
  138. image.read( "girl.gif" );
  139. // Crop the image to specified size (width, height, xOffset, yOffset)
  140. image.crop( Geometry(100,100, 100, 100) );
  141. // Write the image to a file
  142. image.write( "x.gif" );
  143. }
  144. catch( Exception &error_ )
  145. {
  146. cout &lt;&lt; "Caught exception: " &lt;&lt; error_.what() &lt;&lt; endl;
  147. return 1;
  148. }
  149. return 0;
  150. }
  151. </pre>
  152. The following is the source to a program which illustrates the use of
  153. Magick++'s efficient reference-counted assignment and copy-constructor
  154. operations which minimize use of memory and eliminate unnecessary copy
  155. operations (allowing Image objects to be efficiently assigned, and
  156. copied into containers). The program accomplishes the
  157. following:
  158. <ol>
  159. <li> Read master image.</li>
  160. <li> Assign master image to second image.</li>
  161. <li> Resize second image to the size 640x480.</li>
  162. <li> Assign master image to a third image.</li>
  163. <li> Resize third image to the size 800x600.</li>
  164. <li> Write the second image to a file.</li>
  165. <li> Write the third image to a file.</li>
  166. </ol>
  167. <pre class="code">
  168. #include <Magick++.h>
  169. #include <iostream>
  170. using namespace std;
  171. using namespace Magick;
  172. int main(int argc,char **argv)
  173. {
  174. InitializeMagick(*argv);
  175. Image master("horse.jpg");
  176. Image second = master;
  177. second.resize("640x480");
  178. Image third = master;
  179. third.resize("800x600");
  180. second.write("horse640x480.jpg");
  181. third.write("horse800x600.jpg");
  182. return 0;
  183. }
  184. </pre>
  185. During the entire operation, a maximum of three images exist in memory
  186. and the image data is never copied.
  187. <p>The following is the source for another simple program which creates
  188. a 100 by 100 pixel white image with a red pixel in the center and
  189. writes it to a file: </p>
  190. <pre class="code">
  191. #include <Magick++.h>
  192. using namespace std;
  193. using namespace Magick;
  194. int main(int argc,char **argv)
  195. {
  196. InitializeMagick(*argv);
  197. Image image( "100x100", "white" );
  198. image.pixelColor( 49, 49, "red" );
  199. image.write( "red_pixel.png" );
  200. return 0;
  201. }
  202. </pre>
  203. If you wanted to change the color image to grayscale, you could add the
  204. lines:
  205. <pre class="code">
  206. image.quantizeColorSpace( GRAYColorspace );
  207. image.quantizeColors( 256 );
  208. image.quantize( );
  209. </pre>
  210. </p>
  211. <p>or, more simply: </p>
  212. <pre class="code">
  213. image.type( GrayscaleType );
  214. </pre>
  215. <p>prior to writing the image. </p>
  216. </div>
  217. <h2> <a name="BLOBs"></a> BLOBs</h2>
  218. <div class="doc-section">
  219. While encoded images (e.g. JPEG) are most often written-to and
  220. read-from a disk file, encoded images may also reside in memory.
  221. Encoded
  222. images in memory are known as BLOBs (Binary Large OBjects) and may be
  223. represented using the <a href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a> class. The encoded
  224. image may be initially placed in memory by reading it directly from a
  225. file, reading the image from a database, memory-mapped from a disk
  226. file, or could be written to memory by Magick++. Once the encoded image
  227. has been placed within a Blob, it may be read into a Magick++ Image via
  228. a <a href="Image++.html#constructor_blob">constructor</a> or <a href="Image++.html#read">read()</a>
  229. . Likewise, a Magick++ image may be written to a Blob via <a
  230. href="Image++.html#write"> write()</a> .
  231. <p>An example of using Image to write to a Blob follows: <br>
  232. </p>
  233. <pre class="code">
  234. #include <Magick++.h>
  235. using namespace std;
  236. using namespace Magick;
  237. int main(int argc,char **argv)
  238. {
  239. InitializeMagick(*argv);
  240. // Read GIF file from disk
  241. Image image( "giraffe.gif" );
  242. // Write to BLOB in JPEG format
  243. Blob blob;
  244. image.magick( "JPEG" ) // Set JPEG output format
  245. image.write( &blob );
  246. [ Use BLOB data (in JPEG format) here ]
  247. return 0;
  248. }
  249. </pre>
  250. <p><br>
  251. likewise, to read an image from a Blob, you could use one of the
  252. following examples: </p>
  253. <p>[ <font color="#000000">Entry condition for the following examples
  254. is that <i>data</i> is pointer to encoded image data and <i>length</i>
  255. represents the size of the data</font> ] </p>
  256. <pre class="code">
  257. Blob blob( data, length );
  258. Image image( blob );
  259. </pre>
  260. or
  261. <pre class="code">
  262. Blob blob( data, length );
  263. Image image;
  264. image.read( blob);
  265. </pre>
  266. some images do not contain their size or format so the size and format must be specified in advance:
  267. <pre class="code">
  268. Blob blob( data, length );
  269. Image image;
  270. image.size( "640x480")
  271. image.magick( "RGBA" );
  272. image.read( blob);
  273. </pre>
  274. </div>
  275. <h2> <a name="Constructors"></a> Constructors</h2>
  276. <div class="doc-section">
  277. Image may be constructed in a number of ways. It may be constructed
  278. from a file, a URL, or an encoded image (e.g. JPEG) contained in an
  279. in-memory <a href="http://www.imagemagick.org/Magick++/Blob.html"> BLOB</a> . The available Image
  280. constructors are shown in the following table: <br>
  281. <br>
  282. <ul><table bgcolor="#ffffff" border="1" width="100%">
  283. <caption><b>Image Constructors</b></caption> <tbody>
  284. <tr>
  285. <td>
  286. <center><b>Signature</b></center>
  287. </td>
  288. <td>
  289. <center><b>Description</b></center>
  290. </td>
  291. </tr>
  292. <tr>
  293. <td><font size="-1">const std::string &amp;imageSpec_</font></td>
  294. <td><font size="-1">Construct Image by reading from file or URL
  295. specified by <i>imageSpec_</i>. Use array notation (e.g. filename[9])
  296. to select a specific scene from a multi-frame image.</font></td>
  297. </tr>
  298. <tr>
  299. <td><font size="-1">const Geometry &amp;size_, const <a
  300. href="http://www.imagemagick.org/Magick++/Color.html"> Color</a> &amp;color_</font></td>
  301. <td><font size="-1">Construct a blank image canvas of specified
  302. size and color</font></td>
  303. </tr>
  304. <tr>
  305. <td><a name="constructor_blob"></a> <font size="-1">const <a
  306. href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a> &amp;blob_</font></td>
  307. <td rowspan="5"><font size="-1">Construct Image by reading from
  308. encoded image data contained in an in-memory <a href="http://www.imagemagick.org/Magick++/Blob.html">BLOB</a>
  309. . Depending on the constructor arguments, the Blob <a href="Image++.html#size">size</a>
  310. , <a href="Image++.html#depth">depth</a> , <a href="Image++.html#magick">magick</a> (format)
  311. may
  312. also be specified. Some image formats require that size be specified.
  313. The default ImageMagick uses for depth depends on the compiled-in
  314. Quantum size (8 or 16). If ImageMagick's Quantum size does not
  315. match that of the image, the depth may need to be specified.
  316. ImageMagick can usually automagically detect the image's format.
  317. When a format can't be automagically detected, the format (<a
  318. href="Image++.html#magick">magick</a> ) must be specified.</font></td>
  319. </tr>
  320. <tr>
  321. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a>
  322. &amp;blob_, const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a> &amp;size_</font></td>
  323. </tr>
  324. <tr>
  325. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a>
  326. &amp;blob_, const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a> &amp;size,
  327. size_t depth</font></td>
  328. </tr>
  329. <tr>
  330. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a>
  331. &amp;blob_, const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a> &amp;size,
  332. size_t depth_, const string &amp;magick_</font></td>
  333. </tr>
  334. <tr>
  335. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a>
  336. &amp;blob_, const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a> &amp;size,
  337. const
  338. string &amp;magick_</font></td>
  339. </tr>
  340. <tr>
  341. <td><font size="-1">const size_t width_, </font> <br>
  342. <font size="-1">const size_t height_,</font> <br>
  343. <font size="-1">std::string map_,</font> <br>
  344. <font size="-1">const <a href="http://www.imagemagick.org/Magick++/Enumerations.html#StorageType">
  345. StorageType</a> type_,</font> <br>
  346. <font size="-1">const void *pixels_</font></td>
  347. <td><font size="-1">Construct a new Image based on an array of
  348. image pixels. The pixel data must be in scanline order top-to-bottom.
  349. The data can be character, short int, integer, float, or double. Float
  350. and double require the pixels to be normalized [0..1]. The other types
  351. are [0..MaxRGB]. For example, to create a 640x480 image from
  352. unsigned red-green-blue character data, use</font>
  353. <p><font size="-1"> Image image( 640, 480, "RGB",
  354. 0, pixels );</font> </p>
  355. <p><font size="-1">The parameters are as follows:</font> <br>
  356. <table border="0" width="100%">
  357. <tbody>
  358. <tr>
  359. <td><font size="-1">width_</font></td>
  360. <td><font size="-1">Width in pixels of the image.</font></td>
  361. </tr>
  362. <tr>
  363. <td><font size="-1">height_</font></td>
  364. <td><font size="-1">Height in pixels of the image.</font></td>
  365. </tr>
  366. <tr>
  367. <td><font size="-1">map_</font></td>
  368. <td><font size="-1">This character string can be any
  369. combination or order of R = red, G = green, B = blue, A = alpha, C =
  370. cyan, Y = yellow M = magenta, and K = black. The ordering reflects the
  371. order of the pixels in the supplied pixel array.</font></td>
  372. </tr>
  373. <tr>
  374. <td><font size="-1">type_</font></td>
  375. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#StorageType">Pixel
  376. storage type</a> (CharPixel, ShortPixel, IntegerPixel, FloatPixel, or
  377. DoublePixel)</font></td>
  378. </tr>
  379. <tr>
  380. <td><font size="-1">pixels_</font></td>
  381. <td><font size="-1">This array of values contain the pixel
  382. components as defined by the map_ and type_ parameters. The length of
  383. the arrays must equal the area specified by the width_ and height_
  384. values and type_ parameters.</font></td>
  385. </tr>
  386. </tbody>
  387. </table>
  388. </p>
  389. </td>
  390. </tr>
  391. </tbody>
  392. </table></ul>
  393. </div>
  394. <h2> <a name="Image Manipulation Methods"></a> Image Manipulation Methods</h2>
  395. <div class="doc-section">
  396. <i>Image</i> supports access to all the single-image (versus
  397. image-list) manipulation operations provided by the ImageMagick
  398. library. If you
  399. must process a multi-image file (such as an animation), the <a
  400. href="http://www.imagemagick.org/Magick++/STL.html"> STL interface</a> , which provides a multi-image
  401. abstraction on top of <i>Image</i>, must be used.
  402. <p>Image manipulation methods are very easy to use. For example: </p>
  403. <pre class="code">
  404. Image image;
  405. image.read("myImage.tiff");
  406. image.addNoise(GaussianNoise);
  407. image.write("myImage.tiff");
  408. </pre>
  409. adds gaussian noise to the image file "myImage.tiff".
  410. <p>The operations supported by Image are shown in the following table: <br>
  411. <ul><table nosave="" border="1">
  412. <caption><b>Image Image Manipulation Methods</b></caption> <tbody>
  413. <tr align="center">
  414. <td><b>Method</b></td>
  415. <td><b>Signature(s)</b></td>
  416. <td><b>Description</b></td>
  417. </tr>
  418. <tr>
  419. <td style="text-align: center;" valign="middle">
  420. <div align="center"><a name="adaptiveThreshold"></a> <font
  421. size="-1">adaptiveThreshold<br>
  422. </font></div>
  423. </td>
  424. <td valign="middle"><font size="-1">size_t width, size_t
  425. height, size_t offset = 0<br>
  426. </font></td>
  427. <td valign="top"><font size="-1">Apply adaptive thresholding to
  428. the image. Adaptive thresholding is useful if the ideal threshold level
  429. is not known in advance, or if the illumination gradient is not
  430. constant
  431. across the image. Adaptive thresholding works by evaluating the mean
  432. (average) of a pixel region (size specified by <i>width</i> and <i>height</i>)
  433. and using the mean as the thresholding value. In order to remove
  434. residual noise from the background, the threshold may be adjusted by
  435. subtracting a constant <i>offset</i> (default zero) from the mean to
  436. compute the threshold.</font><br>
  437. </td>
  438. </tr>
  439. <tr>
  440. <td style="text-align: center;">
  441. <center><a name="addNoise"></a> <font size="-1">addNoise</font></center>
  442. </td>
  443. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#NoiseType">NoiseType</a>
  444. noiseType_</font></td>
  445. <td><font size="-1">Add noise to image with specified noise type.</font></td>
  446. </tr>
  447. <tr>
  448. <td style="vertical-align: middle; text-align: center;"><small><a
  449. name="addNoiseChannel"></a>addNoiseChannel<br>
  450. </small></td>
  451. <td style="vertical-align: middle;"><small>const ChannelType
  452. channel_, const NoiseType noiseType_<br>
  453. </small></td>
  454. <td style="vertical-align: middle;"><small>Add noise to an image
  455. channel with the specified noise type.</small><font size="-1"> The <span
  456. style="font-style: italic;">channel_</span> parameter specifies the
  457. channel to add noise to. The </font><small>noiseType_ parameter
  458. specifies the type of noise.<br>
  459. </small></td>
  460. </tr>
  461. <tr>
  462. <td style="vertical-align: middle; text-align: center;"><small><a
  463. name="affineTransform"></a>affineTransform<br>
  464. </small></td>
  465. <td style="vertical-align: middle;"><small>const DrawableAffine
  466. &amp;affine<br>
  467. </small></td>
  468. <td style="vertical-align: middle;"><small>Transform image by
  469. specified affine (or free transform) matrix.<br>
  470. </small></td>
  471. </tr>
  472. <tr>
  473. <td style="text-align: center;" rowspan="4">
  474. <center><a name="annotate"></a> <font size="-1">annotate</font></center>
  475. </td>
  476. <td><font size="-1">const std::string &amp;text_, const <a
  477. href="http://www.imagemagick.org/Magick++/Geometry.html"> Geometry</a> &amp;location_</font></td>
  478. <td><font size="-1">Annotate using specified text, and placement
  479. location</font></td>
  480. </tr>
  481. <tr>
  482. <td><font size="-1">string text_, const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  483. &amp;boundingArea_, <a href="http://www.imagemagick.org/Magick++/Enumerations.html#GravityType">GravityType</a>
  484. gravity_</font></td>
  485. <td><font size="-1">Annotate using specified text, bounding area,
  486. and placement gravity. If <i>boundingArea_</i> is invalid, then
  487. bounding area is entire image.</font></td>
  488. </tr>
  489. <tr>
  490. <td><font size="-1">const std::string &amp;text_, const <a
  491. href="http://www.imagemagick.org/Magick++/Geometry.html"> Geometry</a> &amp;boundingArea_, <a
  492. href="http://www.imagemagick.org/Magick++/Enumerations.html#GravityType">GravityType</a> gravity_, double
  493. degrees_, </font></td>
  494. <td><font size="-1">Annotate with text using specified text,
  495. bounding area, placement gravity, and rotation. If <i>boundingArea_</i>
  496. is invalid, then bounding area is entire image.</font></td>
  497. </tr>
  498. <tr>
  499. <td><font size="-1">const std::string &amp;text_, <a
  500. href="http://www.imagemagick.org/Magick++/Enumerations.html#GravityType"> GravityType</a> gravity_</font></td>
  501. <td><font size="-1">Annotate with text (bounding area is entire
  502. image) and placement gravity.</font></td>
  503. </tr>
  504. <tr>
  505. <td style="text-align: center;">
  506. <center><a name="blur"></a> <font size="-1">blur</font></center>
  507. </td>
  508. <td><font size="-1">const double radius_ = 1, const double sigma_
  509. = 0.5</font></td>
  510. <td><font size="-1">Blur image. The <i>radius_ </i>parameter
  511. specifies the radius of the Gaussian, in pixels, not counting the
  512. center
  513. pixel. The <i>sigma_</i> parameter specifies the standard
  514. deviation of the Laplacian, in pixels.</font></td>
  515. </tr>
  516. <tr>
  517. <td style="vertical-align: middle; text-align: center;"><small><a
  518. name="blurChannel"></a>blurChannel<br>
  519. </small></td>
  520. <td style="vertical-align: middle;"><small>const ChannelType
  521. channel_, const double radius_ = 0.0, const double sigma_ = 1.0<br>
  522. </small></td>
  523. <td style="vertical-align: middle;"><font size="-1">Blur an image
  524. channel. The <span style="font-style: italic;">channel_</span>
  525. parameter specifies the channel to blur. The <i>radius_ </i>parameter
  526. specifies the radius of the Gaussian, in pixels, not counting the
  527. center
  528. pixel. The <i>sigma_</i> parameter specifies the standard
  529. deviation of the Laplacian, in pixels.</font></td>
  530. </tr>
  531. <tr>
  532. <td style="text-align: center;">
  533. <center><a name="border"></a> <font size="-1">border</font></center>
  534. </td>
  535. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  536. &amp;geometry_ = "6x6+0+0"</font></td>
  537. <td><font size="-1">Border image (add border to image). The
  538. color of the border is specified by the <i>borderColor</i> attribute.</font></td>
  539. </tr>
  540. <tr>
  541. <td style="text-align: center;">
  542. <center><a name="cdl"></a> <font size="-1">cdl</font></center>
  543. </td>
  544. <td><font size="-1">const std::string &amp;cdl_</font></td>
  545. <td><font size="-1">color correct with a color decision list. See <a href="http://en.wikipedia.org/wiki/ASC_CDL">http://en.wikipedia.org/wiki/ASC_CDL</a> for details.</font></td>
  546. </tr>
  547. <tr>
  548. <td style="text-align: center;">
  549. <center><a name="channel"></a> <font size="-1">channel</font></center>
  550. </td>
  551. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#ChannelType">ChannelType</a>
  552. layer_</font></td>
  553. <td><font size="-1">Extract channel from image. Use this option
  554. to extract a particular channel from the image. <i>MatteChannel</i>
  555. for example, is useful for extracting the opacity values
  556. from an image.</font></td>
  557. </tr>
  558. <tr>
  559. <td style="text-align: center;">
  560. <center><a name="charcoal"></a> <font size="-1">charcoal</font></center>
  561. </td>
  562. <td><font size="-1">const double radius_ = 1, const double sigma_
  563. = 0.5</font></td>
  564. <td><font size="-1">Charcoal effect image (looks like charcoal
  565. sketch). The <i>radius_</i> parameter specifies the radius of the
  566. Gaussian, in pixels, not counting the center pixel. The <i>sigma_</i>
  567. parameter specifies the standard deviation of the Laplacian, in pixels.</font></td>
  568. </tr>
  569. <tr>
  570. <td style="text-align: center;">
  571. <center><a name="chop"></a> <font size="-1">chop</font></center>
  572. </td>
  573. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  574. &amp;geometry_</font></td>
  575. <td><font size="-1">Chop image (remove vertical or horizontal
  576. subregion of image)</font></td>
  577. </tr>
  578. <tr>
  579. <td style="text-align: center;">
  580. <center><a name="colorize"></a> <font size="-1">colorize</font></center>
  581. </td>
  582. <td><font size="-1">const unsigned int opacityRed_, const
  583. unsigned int opacityGreen_, const unsigned int opacityBlue_, const
  584. Color &amp;penColor_</font></td>
  585. <td><font size="-1">Colorize image with pen color, using
  586. specified percent opacity for red, green, and blue quantums.</font></td>
  587. </tr>
  588. <tr>
  589. <td style="text-align: center;">
  590. <center><a name="colorMatrix"></a> <font size="-1">colorMatrix</font></center>
  591. </td>
  592. <td><font size="-1">const size_t order_, const double *color_matrix_</font></td>
  593. <td><font size="-1">apply color correction to the image.</font></td>
  594. </tr>
  595. <tr>
  596. <td style="text-align: center;">
  597. <center><a name="comment"></a> <font size="-1">comment</font></center>
  598. </td>
  599. <td><font size="-1">const std::string &amp;comment_</font></td>
  600. <td><font size="-1">Comment image (add comment string to
  601. image). By default, each image is commented with its file name.
  602. Use this method to assign a specific comment to the
  603. image. Optionally you can include the image filename, type,
  604. width, height, or other image attributes by embedding <a
  605. href="http://www.imagemagick.org/Magick++/FormatCharacters.html">special format characters.</a> </font></td>
  606. </tr>
  607. <tr>
  608. <td style="text-align: center;" valign="middle"><font size="-1"><a
  609. name="compare"></a> compare<br>
  610. </font></td>
  611. <td valign="middle"><font size="-1">const Image &amp;reference_<br>
  612. </font></td>
  613. <td valign="top"><font size="-1">Compare current image with
  614. another image. Sets <a href="Image++.html#meanErrorPerPixel">meanErrorPerPixel</a>
  615. , <a href="Image++.html#normalizedMaxError">normalizedMaxError</a> , and <a
  616. href="Image++.html#normalizedMeanError">normalizedMeanError</a> in the current
  617. image. False is returned if the images are identical. An ErrorOption
  618. exception is thrown if the reference image columns, rows, colorspace,
  619. or
  620. matte differ from the current image.</font><br>
  621. </td>
  622. </tr>
  623. <tr>
  624. <td style="text-align: center;" rowspan="3">
  625. <center><a name="composite"></a> <font size="-1">composite</font></center>
  626. </td>
  627. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Image.html">Image</a>
  628. &amp;compositeImage_, ssize_t xOffset_, ssize_t yOffset_, <a
  629. href="http://www.imagemagick.org/Magick++/Enumerations.html#CompositeOperator"> CompositeOperator</a>
  630. compose_ = <i>InCompositeOp</i></font></td>
  631. <td><font size="-1">Compose an image onto the current image at
  632. offset specified by <i>xOffset_</i>, <i>yOffset_ </i>using the
  633. composition algorithm specified by <i>compose_</i>. </font></td>
  634. </tr>
  635. <tr>
  636. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Image.html">Image</a>
  637. &amp;compositeImage_, const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  638. &amp;offset_, <a href="http://www.imagemagick.org/Magick++/Enumerations.html#CompositeOperator">CompositeOperator</a>
  639. compose_ = <i>InCompositeOp</i></font></td>
  640. <td><font size="-1">Compose an image onto the current image at
  641. offset specified by <i>offset_</i> using the composition algorithm
  642. specified by <i>compose_</i> . </font></td>
  643. </tr>
  644. <tr>
  645. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Image.html">Image</a>
  646. &amp;compositeImage_, <a href="http://www.imagemagick.org/Magick++/Enumerations.html#GravityType">GravityType</a>
  647. gravity_, <a href="http://www.imagemagick.org/Magick++/Enumerations.html#CompositeOperator">CompositeOperator</a>
  648. compose_ = <i>InCompositeOp</i></font></td>
  649. <td><font size="-1">Compose an image onto the current image with
  650. placement specified by <i>gravity_ </i>using the composition
  651. algorithm
  652. specified by <i>compose_</i>. </font></td>
  653. </tr>
  654. <tr>
  655. <td style="text-align: center;">
  656. <center><a name="contrast"></a> <font size="-1">contrast</font></center>
  657. </td>
  658. <td><font size="-1">size_t sharpen_</font></td>
  659. <td><font size="-1">Contrast image (enhance intensity differences
  660. in image)</font></td>
  661. </tr>
  662. <tr>
  663. <td style="text-align: center;">
  664. <center><a name="convolve"></a> <font size="-1">convolve</font></center>
  665. </td>
  666. <td><font size="-1">size_t order_, const double *kernel_</font></td>
  667. <td><font size="-1">Convolve image. Applies a user-specified
  668. convolution to the image. The <i>order_</i> parameter represents the
  669. number of columns and rows in the filter kernel, and <i>kernel_</i>
  670. is a two-dimensional array of doubles representing the convolution
  671. kernel to apply.</font></td>
  672. </tr>
  673. <tr>
  674. <td style="text-align: center;">
  675. <center><a name="crop"></a> <font size="-1">crop</font></center>
  676. </td>
  677. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  678. &amp;geometry_</font></td>
  679. <td><font size="-1">Crop image (subregion of original image)</font></td>
  680. </tr>
  681. <tr>
  682. <td style="text-align: center;">
  683. <center><a name="cycleColormap"></a> <font size="-1">cycleColormap</font></center>
  684. </td>
  685. <td><font size="-1">int amount_</font></td>
  686. <td><font size="-1">Cycle image colormap</font></td>
  687. </tr>
  688. <tr>
  689. <td style="text-align: center;">
  690. <center><a name="despeckle"></a> <font size="-1">despeckle</font></center>
  691. </td>
  692. <td><font size="-1">void</font></td>
  693. <td><font size="-1">Despeckle image (reduce speckle noise)</font></td>
  694. </tr>
  695. <tr>
  696. <td style="text-align: center;">
  697. <center><a name="display"></a> <font size="-1">display</font></center>
  698. </td>
  699. <td><font size="-1">void</font></td>
  700. <td><font size="-1">Display image on screen.</font> <br>
  701. <font size="-1"><b><font color="#ff0000">Caution: </font></b> if
  702. an image format is is not compatible with the display visual (e.g.
  703. JPEG on a colormapped display) then the original image will be
  704. altered. Use a copy of the original if this is a problem.</font></td>
  705. </tr>
  706. <tr>
  707. <td>
  708. <center><a name="distort"></a> <font size="-1">distort</font></center>
  709. </td>
  710. <td><font size="-1">const DistortImageMethod method, const size_t number_arguments, const double *arguments, const bool bestfit = false </font></td>
  711. <td><font size="-1">Distort image. Applies a user-specified
  712. distortion to the image.</font></td>
  713. </tr>
  714. <tr>
  715. <td style="text-align: center;" rowspan="2">
  716. <center><a name="draw"></a> <font size="-1">draw</font></center>
  717. </td>
  718. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Drawable.html">Drawable</a>
  719. &amp;drawable_</font></td>
  720. <td><font size="-1">Draw shape or text on image.</font></td>
  721. </tr>
  722. <tr>
  723. <td><font size="-1">const std::list&lt;<a href="http://www.imagemagick.org/Magick++/Drawable.html">Drawable</a>
  724. &gt; &amp;drawable_</font></td>
  725. <td><font size="-1">Draw shapes or text on image using a set of
  726. Drawable objects contained in an STL list. Use of this method improves
  727. drawing performance and allows batching draw objects together in a
  728. list for repeated use.</font></td>
  729. </tr>
  730. <tr>
  731. <td style="text-align: center;">
  732. <center><a name="edge"></a> <font size="-1">edge</font></center>
  733. </td>
  734. <td><font size="-1">size_t radius_ = 0.0</font></td>
  735. <td><font size="-1">Edge image (hilight edges in image).
  736. The radius is the radius of the pixel neighborhood.. Specify a radius
  737. of zero for automatic radius selection.</font></td>
  738. </tr>
  739. <tr>
  740. <td style="text-align: center;">
  741. <center><a name="emboss"></a> <font size="-1">emboss</font></center>
  742. </td>
  743. <td><font size="-1">const double radius_ = 1, const double sigma_
  744. = 0.5</font></td>
  745. <td><font size="-1">Emboss image (hilight edges with 3D effect).
  746. The <i> radius_</i> parameter specifies the radius of the Gaussian, in
  747. pixels, not counting the center pixel. The <i>sigma_</i>
  748. parameter specifies the standard deviation of the Laplacian, in pixels.</font></td>
  749. </tr>
  750. <tr>
  751. <td style="text-align: center;">
  752. <center><a name="enhance"></a> <font size="-1">enhance</font></center>
  753. </td>
  754. <td><font size="-1">void</font></td>
  755. <td><font size="-1">Enhance image (minimize noise)</font></td>
  756. </tr>
  757. <tr>
  758. <td style="text-align: center;">
  759. <center><a name="equalize"></a> <font size="-1">equalize</font></center>
  760. </td>
  761. <td><font size="-1">void</font></td>
  762. <td><font size="-1">Equalize image (histogram equalization)</font></td>
  763. </tr>
  764. <tr>
  765. <td style="text-align: center;">
  766. <center><a name="erase"></a> <font size="-1">erase</font></center>
  767. </td>
  768. <td><font size="-1">void</font></td>
  769. <td><font size="-1">Set all image pixels to the current
  770. background color.</font></td>
  771. </tr>
  772. <tr>
  773. <td style="text-align: center;" rowspan="4">
  774. <center><a name="extent"></a> <font size="-1">extent</font></td>
  775. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html"> Geometry</a> &amp;geometry_</font></td>
  776. <td rowspan="2"><font size="-1">extends the image as defined by the geometry, gravity, and image background color.</font></td>
  777. </tr>
  778. <tr>
  779. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  780. &amp;geometry_, const <a href="http://www.imagemagick.org/Magick++/Color.html">Color</a> &amp;backgroundColor_</font></td>
  781. </tr>
  782. <tr>
  783. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html"> Geometry</a> &amp;geometry_, const <a href="../../api/Enumerations.html#GravityType">GravityType</a>
  784. &amp;gravity_</font></td>
  785. <td rowspan="2"><font size="-1">extends the image as defined by the geometry, gravity, and image background color.</font></td>
  786. </tr>
  787. <tr>
  788. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  789. &amp;geometry_, const <a href="http://www.imagemagick.org/Magick++/Color.html">Color</a> &amp;backgroundColor_,
  790. const <a href="http://www.imagemagick.org/Magick++/Enumerations.html#GravityType">GravityType</a> &amp;gravity_</font></td>
  791. </tr>
  792. <tr>
  793. <td style="text-align: center;">
  794. <center><a name="flip"></a> <font size="-1">flip</font></center>
  795. </td>
  796. <td><font size="-1">void</font></td>
  797. <td><font size="-1">Flip image (reflect each scanline in the
  798. vertical direction)</font></td>
  799. </tr>
  800. <tr>
  801. <td style="text-align: center;" rowspan="4">
  802. <center><a name="floodFillColor"></a> <font size="-1">floodFill-</font>
  803. <br>
  804. <font size="-1">Color</font></center>
  805. </td>
  806. <td><font size="-1">ssize_t x_, ssize_t y_, const <a
  807. href="http://www.imagemagick.org/Magick++/Color.html"> Color</a> &amp;fillColor_</font></td>
  808. <td rowspan="2"><font size="-1">Flood-fill color across pixels
  809. that match the color of the target pixel and are neighbors of the
  810. target pixel. Uses current fuzz setting when determining color match.</font></td>
  811. </tr>
  812. <tr>
  813. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  814. &amp;point_, const <a href="http://www.imagemagick.org/Magick++/Color.html">Color</a> &amp;fillColor_</font></td>
  815. </tr>
  816. <tr>
  817. <td><font size="-1">ssize_t x_, ssize_t y_, const <a
  818. href="http://www.imagemagick.org/Magick++/Color.html"> Color</a> &amp;fillColor_, const <a
  819. href="http://www.imagemagick.org/Magick++/Color.html">Color</a>
  820. &amp;borderColor_</font></td>
  821. <td rowspan="2"><font size="-1">Flood-fill color across pixels
  822. starting at target-pixel and stopping at pixels matching specified
  823. border color. Uses current fuzz setting when determining color match.</font></td>
  824. </tr>
  825. <tr>
  826. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  827. &amp;point_, const <a href="http://www.imagemagick.org/Magick++/Color.html">Color</a> &amp;fillColor_,
  828. const <a href="http://www.imagemagick.org/Magick++/Color.html">Color</a> &amp;borderColor_</font></td>
  829. </tr>
  830. <tr>
  831. <td style="text-align: center;"><a name="floodFillOpacity"></a> <font
  832. size="-1">floodFillOpacity</font></td>
  833. <td><font size="-1">const long x_, const long y_, const unsigned int
  834. opacity_, const PaintMethod method_</font></td>
  835. <td><font size="-1">Floodfill pixels matching color (within fuzz
  836. factor) of target pixel(x,y) with replacement opacity value using
  837. method.</font></td>
  838. </tr>
  839. <tr>
  840. <td style="text-align: center;" rowspan="4">
  841. <center><a name="floodFillTexture"></a> <font size="-1">floodFill-</font>
  842. <br>
  843. <font size="-1">Texture</font></center>
  844. </td>
  845. <td><font size="-1">ssize_t x_, ssize_t y_, const
  846. Image &amp;texture_</font></td>
  847. <td rowspan="2"><font size="-1">Flood-fill texture across pixels
  848. that match the color of the target pixel and are neighbors of the
  849. target pixel. Uses current fuzz setting when determining color match.</font></td>
  850. </tr>
  851. <tr>
  852. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  853. &amp;point_, const Image &amp;texture_</font></td>
  854. </tr>
  855. <tr>
  856. <td><font size="-1">ssize_t x_, ssize_t y_, const Image
  857. &amp;texture_, const <a href="http://www.imagemagick.org/Magick++/Color.html">Color</a> &amp;borderColor_</font></td>
  858. <td rowspan="2"><font size="-1">Flood-fill texture across pixels
  859. starting at target-pixel and stopping at pixels matching specified
  860. border color. Uses current fuzz setting when determining color match.</font></td>
  861. </tr>
  862. <tr>
  863. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  864. &amp;point_, const Image &amp;texture_, const <a href="http://www.imagemagick.org/Magick++/Color.html">
  865. Color</a>
  866. &amp;borderColor_</font></td>
  867. </tr>
  868. <tr>
  869. <td style="text-align: center;">
  870. <center><a name="flop"></a> <font size="-1">flop</font></center>
  871. </td>
  872. <td><font size="-1">void </font></td>
  873. <td><font size="-1">Flop image (reflect each scanline in the
  874. horizontal direction)</font></td>
  875. </tr>
  876. <tr>
  877. <td style="text-align: center;" rowspan="2">
  878. <center><a name="frame"></a> <font size="-1">frame</font></center>
  879. </td>
  880. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  881. &amp;geometry_ = "25x25+6+6"</font></td>
  882. <td rowspan="2"><font size="-1">Add decorative frame around image</font></td>
  883. </tr>
  884. <tr>
  885. <td><font size="-1">size_t width_, size_t height_,
  886. ssize_t x_, ssize_t y_, ssize_t innerBevel_ = 0, ssize_t outerBevel_ = 0</font></td>
  887. </tr>
  888. <tr>
  889. <td>
  890. <center><a name="fx"></a> <font size="-1">fx</font></center>
  891. </td>
  892. <td><font size="-1">const std::string expression, const Magick::ChannelType channel</font></td>
  893. <td><font size="-1">Fx image. Applies a mathematical
  894. expression to the image.</font></td>
  895. </tr>
  896. <tr>
  897. <td style="text-align: center;" rowspan="2">
  898. <center><a name="gamma"></a> <font size="-1">gamma</font></center>
  899. </td>
  900. <td><font size="-1">double gamma_</font></td>
  901. <td><font size="-1">Gamma correct image (uniform red, green, and
  902. blue correction).</font></td>
  903. </tr>
  904. <tr>
  905. <td><font size="-1">double gammaRed_, double gammaGreen_, double
  906. gammaBlue_</font></td>
  907. <td><font size="-1">Gamma correct red, green, and blue channels
  908. of image.</font></td>
  909. </tr>
  910. <tr>
  911. <td style="text-align: center;">
  912. <center><a name="gaussianBlur"></a> <font size="-1">gaussianBlur</font></center>
  913. </td>
  914. <td><font size="-1">const double width_, const double sigma_</font></td>
  915. <td><font size="-1">Gaussian blur image. The number of neighbor
  916. pixels to be included in the convolution mask is specified by
  917. 'width_'. For example, a width of one gives a (standard) 3x3
  918. convolution mask. The standard deviation of the gaussian bell curve is
  919. specified by 'sigma_'.</font></td>
  920. </tr>
  921. <tr>
  922. <td style="vertical-align: middle; text-align: center;"><small><a
  923. name="gaussianBlurChannel"></a>gaussianBlurChannel<br>
  924. </small></td>
  925. <td style="vertical-align: middle;"><small>const ChannelType
  926. channel_, const double radius_ = 0.0, const double sigma_ = 1.0<br>
  927. </small></td>
  928. <td style="vertical-align: middle;"><font size="-1">Gaussian blur
  929. an image channel. </font><font size="-1">The <span
  930. style="font-style: italic;">channel_</span> parameter specifies the
  931. channel to blur. </font><font size="-1">The number of neighbor
  932. pixels to be included in the convolution mask is specified by
  933. 'width_'. For example, a width of one gives a (standard) 3x3
  934. convolution mask. The standard deviation of the gaussian bell curve is
  935. specified by 'sigma_'.</font></td>
  936. </tr>
  937. <tr>
  938. <td style="text-align: center;" valign="middle"><font size="-1"><a
  939. name="haldClut"></a> haldClut<br>
  940. </font></td>
  941. <td valign="middle"><font size="-1">const Image &amp;reference_<br>
  942. </font></td>
  943. <td valign="top"><font size="-1">apply a Hald color lookup table to the image.</font><br>
  944. </td>
  945. </tr>
  946. <tr>
  947. <td style="text-align: center;">
  948. <center><a name="implode"></a> <font size="-1">implode</font></center>
  949. </td>
  950. <td><font size="-1">const double factor_</font></td>
  951. <td><font size="-1">Implode image (special effect)</font></td>
  952. </tr>
  953. <tr>
  954. <td style="text-align: center;">
  955. <center><a name="inverseFourierTransform"></a> <font size="-1">inverseFourierTransform</font></center>
  956. </td>
  957. <td><font size="-1">const Image &amp;phaseImage_, const bool magnitude_</font></td>
  958. <td><font size="-1">implements the inverse discrete Fourier transform (DFT) of the image either as a magnitude / phase or real / imaginary image pair.</font></td>
  959. </tr>
  960. <tr>
  961. <td style="text-align: center;">
  962. <center><a name="label"></a> <font size="-1">label</font></center>
  963. </td>
  964. <td><font size="-1">const string &amp;label_</font></td>
  965. <td><font size="-1">Assign a label to an image. Use this option
  966. to assign a specific label to the image. Optionally
  967. you can include the image filename, type, width, height, or scene
  968. number in the label by embedding <a href="http://www.imagemagick.org/Magick++/FormatCharacters.html">
  969. special format characters.</a> If the first character of string is @,
  970. the
  971. image label is read from a file titled by the remaining characters in
  972. the string. When converting to Postscript, use this option to
  973. specify a header string to print above the image.</font></td>
  974. </tr>
  975. <tr>
  976. <td style="vertical-align: top; text-align: center;"><small><a
  977. name="level"></a>level<br>
  978. </small></td>
  979. <td style="vertical-align: top;"><small>const double black_point,
  980. const double white_point, const double mid_point=1.0<br>
  981. </small></td>
  982. <td style="vertical-align: top;"><small>Level image. Adjust the
  983. levels of the image by scaling the colors falling between specified
  984. white and black points to the full available quantum range. The
  985. parameters provided represent the black, mid (gamma), and white
  986. points. The black point specifies the darkest color in the image.
  987. Colors darker than the black point are set to zero. Mid point (gamma)
  988. specifies a gamma correction to apply to the image. White point
  989. specifies the lightest color in the image. Colors brighter than
  990. the white point are set to the maximum quantum value. The black and
  991. white point have the valid range 0 to MaxRGB while mid (gamma) has a
  992. useful range of 0 to ten.<br>
  993. </small></td>
  994. </tr>
  995. <tr>
  996. <td style="vertical-align: middle; text-align: center;"><small><a
  997. name="levelChannel"></a>levelChannel<br>
  998. </small></td>
  999. <td style="vertical-align: middle;"><small>const ChannelType
  1000. channel, const double black_point, const double white_point, const
  1001. double mid_point=1.0<br>
  1002. </small></td>
  1003. <td style="vertical-align: middle;"><small>Level image channel.
  1004. Adjust the levels of the image channel by scaling the values falling
  1005. between specified white and black points to the full available quantum
  1006. range. The parameters provided represent the black, mid (gamma), and
  1007. white points. The black point specifies the darkest color in the image.
  1008. Colors darker than the black point are set to zero. Mid point (gamma)
  1009. specifies a gamma correction to apply to the image. White point
  1010. specifies the lightest color in the image. Colors brighter than the
  1011. white point are set to the maximum quantum value. The black and white
  1012. point have the valid range 0 to MaxRGB while mid (gamma) has a useful
  1013. range of 0 to ten.<br>
  1014. </small></td>
  1015. </tr>
  1016. <tr>
  1017. <td style="text-align: center;">
  1018. <center><a name="magnify"></a> <font size="-1">magnify</font></center>
  1019. </td>
  1020. <td><font size="-1">void</font></td>
  1021. <td><font size="-1">Magnify image by integral size</font></td>
  1022. </tr>
  1023. <tr>
  1024. <td style="text-align: center;">
  1025. <center><a name="map"></a> <font size="-1">map</font></center>
  1026. </td>
  1027. <td><font size="-1">const Image &amp;mapImage_ , bool dither_ =
  1028. false</font></td>
  1029. <td><font size="-1">Remap image colors with closest color from
  1030. reference image. Set dither_ to <i>true</i> in to apply
  1031. Floyd/Steinberg
  1032. error diffusion to the image. By default, color reduction chooses an
  1033. optimal set of colors that best represent the original
  1034. image. Alternatively, you can choose a
  1035. particular set of colors from an image file
  1036. with this option.</font></td>
  1037. </tr>
  1038. <tr>
  1039. <td style="text-align: center;">
  1040. <center><a name="matteFloodfill"></a> <font size="-1">matteFloodfill</font></center>
  1041. </td>
  1042. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Color.html">Color</a>
  1043. &amp;target_, const unsigned int opacity_, const ssize_t x_, const
  1044. ssize_t
  1045. y_, <a href="http://www.imagemagick.org/Magick++/Enumerations.html#PaintMethod">PaintMethod</a> method_</font></td>
  1046. <td><font size="-1">Floodfill designated area with a replacement
  1047. opacity value.</font></td>
  1048. </tr>
  1049. <tr>
  1050. <td style="text-align: center;"><a name="medianFilter"></a> <font
  1051. size="-1">medianFilter</font></td>
  1052. <td><font size="-1">const double radius_ = 0.0</font></td>
  1053. <td><font size="-1">Filter image by replacing each pixel
  1054. component with the median color in a circular neighborhood</font></td>
  1055. </tr>
  1056. <tr>
  1057. <td style="text-align: center;">
  1058. <center><a name="mergeLayers"></a> <font size="-1">mergeLayers</font></center>
  1059. </td>
  1060. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#LayerMethod">LayerMethod</a>
  1061. noiseType_</font></td>
  1062. <td><font size="-1">handle multiple images forming a set of image layers or animation frames.</font></td>
  1063. </tr>
  1064. <tr>
  1065. <td style="text-align: center;">
  1066. <center><a name="minify"></a> <font size="-1">minify</font></center>
  1067. </td>
  1068. <td><font size="-1">void</font></td>
  1069. <td><font size="-1">Reduce image by integral size</font></td>
  1070. </tr>
  1071. <tr>
  1072. <td style="text-align: center;"><a name="modifyImage"></a> <font
  1073. size="-1">modifyImage</font></td>
  1074. <td><font size="-1">void</font></td>
  1075. <td><font size="-1">Prepare to update image. Ensures that there
  1076. is only one reference to the underlying image so that the underlying
  1077. image may be safely modified without effecting previous generations of
  1078. the image. Copies the underlying image to a new image if necessary.</font></td>
  1079. </tr>
  1080. <tr>
  1081. <td style="text-align: center;">
  1082. <center><a name="modulate"></a> <font size="-1">modulate</font></center>
  1083. </td>
  1084. <td><font size="-1">double brightness_, double saturation_,
  1085. double hue_</font></td>
  1086. <td><font size="-1">Modulate percent hue, saturation, and
  1087. brightness of an image. Modulation of saturation and brightness is as a
  1088. ratio of the current value (1.0 for no change). Modulation of hue is an
  1089. absolute rotation of -180 degrees to +180 degrees from the current
  1090. position corresponding to an argument range of 0 to 2.0 (1.0 for no
  1091. change).</font></td>
  1092. </tr>
  1093. <tr>
  1094. <td style="vertical-align: middle; text-align: center;"><small><a
  1095. name="motionBlur"></a>motionBlur<br>
  1096. </small></td>
  1097. <td style="vertical-align: middle;"><small>const double radius_,
  1098. const double sigma_, const double angle_<br>
  1099. </small></td>
  1100. <td style="vertical-align: middle;"><small>Motion blur image with
  1101. specified blur factor. The radius_ parameter specifies the radius of
  1102. the Gaussian, in pixels, not counting the center pixel. The
  1103. sigma_ parameter specifies the standard deviation of the Laplacian, in
  1104. pixels. The angle_ parameter specifies the angle the object appears to
  1105. be coming from (zero degrees is from the right).<br>
  1106. </small></td>
  1107. </tr>
  1108. <tr>
  1109. <td style="text-align: center;">
  1110. <center><a name="negate"></a> <font size="-1">negate</font></center>
  1111. </td>
  1112. <td><font size="-1">bool grayscale_ = false</font></td>
  1113. <td><font size="-1">Negate colors in image. Replace every
  1114. pixel with its complementary color (white becomes black, yellow becomes
  1115. blue, etc.). Set grayscale to only negate grayscale values in
  1116. image.</font></td>
  1117. </tr>
  1118. <tr>
  1119. <td style="text-align: center;">
  1120. <center><a name="normalize"></a> <font size="-1">normalize</font></center>
  1121. </td>
  1122. <td><font size="-1">void</font></td>
  1123. <td><font size="-1">Normalize image (increase contrast by
  1124. normalizing the pixel values to span the full range of color values).</font></td>
  1125. </tr>
  1126. <tr>
  1127. <td style="text-align: center;">
  1128. <center><a name="oilPaint"></a> <font size="-1">oilPaint</font></center>
  1129. </td>
  1130. <td><font size="-1">size_t radius_ = 3</font></td>
  1131. <td><font size="-1">Oilpaint image (image looks like oil painting)</font></td>
  1132. </tr>
  1133. <tr>
  1134. <td style="text-align: center;">
  1135. <center><a name="opacity"></a> <font size="-1">opacity</font></center>
  1136. </td>
  1137. <td><font size="-1">unsigned int opacity_</font></td>
  1138. <td><font size="-1">Set or attenuate the opacity channel in the
  1139. image. If the image pixels are opaque then they are set to the
  1140. specified
  1141. opacity value, otherwise they are blended with the supplied opacity
  1142. value. The value of opacity_ ranges from 0 (completely opaque) to
  1143. <i>MaxRGB</i>
  1144. . The defines <i>OpaqueOpacity</i> and <i>TransparentOpacity</i> are
  1145. available to specify completely opaque or completely transparent,
  1146. respectively.</font></td>
  1147. </tr>
  1148. <tr>
  1149. <td style="text-align: center;">
  1150. <center><a name="opaque"></a> <font size="-1">opaque</font></center>
  1151. </td>
  1152. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Color.html">Color</a>
  1153. &amp;opaqueColor_, const <a href="http://www.imagemagick.org/Magick++/Color.html">Color</a> &amp;penColor_</font></td>
  1154. <td><font size="-1">Change color of pixels matching opaqueColor_
  1155. to specified penColor_.</font></td>
  1156. </tr>
  1157. <tr nosave="">
  1158. <td style="text-align: center;" rowspan="2" nosave="">
  1159. <center><a name="ping"></a> <font size="-1">ping</font></center>
  1160. </td>
  1161. <td><font size="-1">const std::string &amp;imageSpec_</font></td>
  1162. <td rowspan="2" nosave=""><font size="-1">Ping is similar to read
  1163. except only enough of the image is read to determine the image columns,
  1164. rows, and filesize. The <a href="Image++.html#columns">columns</a> </font>,
  1165. <font size="-1"><a href="Image++.html#rows">rows</a> , and <a
  1166. href="Image++.html#fileSize">fileSize</a>
  1167. attributes are valid after invoking ping. The image data is not
  1168. valid after calling ping.</font></td>
  1169. </tr>
  1170. <tr>
  1171. <td><font size="-1">const Blob &amp;blob_</font></td>
  1172. </tr>
  1173. <tr>
  1174. <td style="vertical-align: middle; text-align: center;"><small><a
  1175. name="process"></a>process<br>
  1176. </small></td>
  1177. <td style="vertical-align: middle;"><small>std::string name_,
  1178. const ssize_t argc_, char **argv_<br>
  1179. </small></td>
  1180. <td style="vertical-align: middle;"><small>Execute the named
  1181. process module, passing any arguments via an argument vector, with
  1182. argc_
  1183. specifying the number of arguments in the vector, and argv_ passing the
  1184. address of an array of null-terminated C strings which constitute the
  1185. argument vector. An exception is thrown if the requested process module
  1186. does not exist, fails to load, or fails during execution.</small><br>
  1187. </td>
  1188. </tr>
  1189. <tr>
  1190. <td style="text-align: center;">
  1191. <center><a name="quantize"></a> <font size="-1">quantize</font></center>
  1192. </td>
  1193. <td><font size="-1">bool measureError_ = false</font></td>
  1194. <td><font size="-1">Quantize image (reduce number of colors). Set
  1195. measureError_ to true in order to calculate error attributes.</font></td>
  1196. </tr>
  1197. <tr>
  1198. <td style="text-align: center;">
  1199. <center><a name="raise"></a> <font size="-1">raise</font></center>
  1200. </td>
  1201. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  1202. &amp;geometry_ = "6x6+0+0", bool raisedFlag_ = false</font></td>
  1203. <td><font size="-1">Raise image (lighten or darken the edges of
  1204. an image to give a 3-D raised or lowered effect)</font></td>
  1205. </tr>
  1206. <tr>
  1207. <td style="text-align: center;" rowspan="8">
  1208. <center><a name="read"></a> <font size="-1">read</font></center>
  1209. </td>
  1210. <td><font size="-1">const string &amp;imageSpec_</font></td>
  1211. <td><font size="-1">Read image into current object</font></td>
  1212. </tr>
  1213. <tr>
  1214. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  1215. &amp;size_, const std::string &amp;imageSpec_</font></td>
  1216. <td><font size="-1">Read image of specified size into current
  1217. object. This form is useful for images that do not specify their size
  1218. or to specify a size hint for decoding an image. For example, when
  1219. reading a Photo CD, JBIG, or JPEG image, a size request causes the
  1220. library to return an image which is the next resolution greater or
  1221. equal to the specified size. This may result in memory and time savings.</font></td>
  1222. </tr>
  1223. <tr>
  1224. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a> &amp;blob_</font></td>
  1225. <td rowspan="5"><font size="-1">Read encoded image of specified
  1226. size from an in-memory <a href="http://www.imagemagick.org/Magick++/Blob.html">BLOB</a> into current
  1227. object. Depending on the method arguments, the Blob size, depth, and
  1228. format may also be specified. Some image formats require that size be
  1229. specified. The default ImageMagick uses for depth depends on its
  1230. Quantum size (8 or 16). If ImageMagick's Quantum size does not
  1231. match that of the image, the depth may need to be specified.
  1232. ImageMagick can usually automagically detect the image's format.
  1233. When
  1234. a format can't be automagically detected, the format must be specified.</font></td>
  1235. </tr>
  1236. <tr>
  1237. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a>
  1238. &amp;blob_, const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a> &amp;size_</font></td>
  1239. </tr>
  1240. <tr>
  1241. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a>
  1242. &amp;blob_, const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a> &amp;size_,
  1243. size_t depth_</font></td>
  1244. </tr>
  1245. <tr>
  1246. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a>
  1247. &amp;blob_, const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a> &amp;size_,
  1248. size_t depth_, const string &amp;magick_ </font></td>
  1249. </tr>
  1250. <tr>
  1251. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a>
  1252. &amp;blob_, const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a> &amp;size_,
  1253. const
  1254. string &amp;magick_</font></td>
  1255. </tr>
  1256. <tr>
  1257. <td><font size="-1">const size_t width_, const size_t
  1258. height_, std::string map_, const StorageType type_, const void *pixels_</font></td>
  1259. <td><font size="-1">Read image based on an array of image pixels.
  1260. The pixel data must be in scanline order top-to-bottom. The data can be
  1261. character, short int, integer, float, or double. Float and double
  1262. require the pixels to be normalized [0..1]. The other types are
  1263. [0..MaxRGB]. For example, to create a 640x480 image from
  1264. unsigned red-green-blue character data, use</font>
  1265. <p><font size="-1"> image.read( 640, 480, "RGB", CharPixel,
  1266. pixels );</font> </p>
  1267. <p><font size="-1">The parameters are as follows:</font> <br>
  1268. <table border="0" width="100%">
  1269. <tbody>
  1270. <tr>
  1271. <td><font size="-1">width_</font></td>
  1272. <td><font size="-1">Width in pixels of the image.</font></td>
  1273. </tr>
  1274. <tr>
  1275. <td><font size="-1">height_</font></td>
  1276. <td><font size="-1">Height in pixels of the image.</font></td>
  1277. </tr>
  1278. <tr>
  1279. <td><font size="-1">map_</font></td>
  1280. <td><font size="-1">This character string can be any
  1281. combination or order of R = red, G = green, B = blue, A = alpha, C =
  1282. cyan, Y = yellow M = magenta, and K = black. The ordering reflects the
  1283. order of the pixels in the supplied pixel array.</font></td>
  1284. </tr>
  1285. <tr>
  1286. <td><font size="-1">type_</font></td>
  1287. <td><font size="-1">Pixel storage type (CharPixel,
  1288. ShortPixel, IntegerPixel, FloatPixel, or DoublePixel)</font></td>
  1289. </tr>
  1290. <tr>
  1291. <td><font size="-1">pixels_</font></td>
  1292. <td><font size="-1">This array of values contain the pixel
  1293. components as defined by the map_ and type_ parameters. The length of
  1294. the arrays must equal the area specified by the width_ and height_
  1295. values and type_ parameters.</font></td>
  1296. </tr>
  1297. </tbody>
  1298. </table>
  1299. </p>
  1300. </td>
  1301. </tr>
  1302. <tr>
  1303. <td style="text-align: center;">
  1304. <center><a name="reduceNoise"></a> <font size="-1">reduceNoise</font></center>
  1305. </td>
  1306. <td><font size="-1">const double order_</font></td>
  1307. <td><font size="-1">reduce noise in image using a noise peak elimination filter.</font></td>
  1308. </tr>
  1309. <tr>
  1310. <td style="vertical-align: middle; text-align: center;"><small><a
  1311. name="randomThreshold"></a>randomThreshold<br>
  1312. </small></td>
  1313. <td style="vertical-align: middle;"><small>const Geometry
  1314. &amp;thresholds_<br>
  1315. </small></td>
  1316. <td style="vertical-align: middle;"><small>Random threshold the
  1317. image. Changes the value of individual pixels based on the intensity of
  1318. each pixel compared to a random threshold. The result is a
  1319. low-contrast, two color image. The thresholds_ argument is a
  1320. geometry containing LOWxHIGH thresholds. If the string contains
  1321. 2x2, 3x3, or 4x4, then an ordered dither of order 2, 3, or 4 will be
  1322. performed instead. This is a very fast alternative to 'quantize' based
  1323. dithering.<br>
  1324. </small></td>
  1325. </tr>
  1326. <tr>
  1327. <td style="vertical-align: middle; text-align: center;"><small><a
  1328. name="randomThresholdChannel"></a>randomThresholdChannel<br>
  1329. </small></td>
  1330. <td style="vertical-align: middle;"><small>const Geometry
  1331. &amp;thresholds_, const ChannelType channel_<br>
  1332. </small></td>
  1333. <td style="vertical-align: middle;"><small>Random threshold an
  1334. image channel. Similar to <a href="Image++.html#randomThreshold">randomThreshold</a>()
  1335. but restricted to the specified channel.<br>
  1336. </small></td>
  1337. </tr>
  1338. <tr>
  1339. <td style="text-align: center;">
  1340. <center><a name="roll"></a> <font size="-1">roll</font></center>
  1341. </td>
  1342. <td><font size="-1">int columns_, ssize_t rows_</font></td>
  1343. <td><font size="-1">Roll image (rolls image vertically and
  1344. horizontally) by specified number of columns and rows)</font></td>
  1345. </tr>
  1346. <tr>
  1347. <td style="text-align: center;">
  1348. <center><a name="rotate"></a> <font size="-1">rotate</font></center>
  1349. </td>
  1350. <td><font size="-1">double degrees_</font></td>
  1351. <td><font size="-1">Rotate image counter-clockwise by specified
  1352. number of degrees.</font></td>
  1353. </tr>
  1354. <tr>
  1355. <td style="text-align: center;">
  1356. <center><a name="sample"></a> <font size="-1">sample</font></center>
  1357. </td>
  1358. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  1359. &amp;geometry_ </font></td>
  1360. <td><font size="-1">Resize image by using pixel sampling algorithm</font></td>
  1361. </tr>
  1362. <tr>
  1363. <td style="text-align: center;">
  1364. <center><a name="scale"></a> <font size="-1">scale</font></center>
  1365. </td>
  1366. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  1367. &amp;geometry_</font></td>
  1368. <td><font size="-1">Resize image by using simple ratio algorithm</font></td>
  1369. </tr>
  1370. <tr>
  1371. <td style="text-align: center;">
  1372. <center><a name="segment"></a> <font size="-1">segment</font></center>
  1373. </td>
  1374. <td><font size="-1">double clusterThreshold_ = 1.0,</font> <br>
  1375. <font size="-1">double smoothingThreshold_ = 1.5</font></td>
  1376. <td><font size="-1">Segment (coalesce similar image components)
  1377. by analyzing the histograms of the color components and identifying
  1378. units that are homogeneous with the fuzzy c-means technique. Also uses <i>quantizeColorSpace</i>
  1379. and <i>verbose</i> image attributes. Specify <i> clusterThreshold_</i>
  1380. ,
  1381. as the number of pixels each cluster must
  1382. exceed
  1383. the cluster threshold to be considered valid. <i>SmoothingThreshold_</i>
  1384. eliminates noise in the second derivative of the histogram. As
  1385. the
  1386. value is increased, you can expect a smoother
  1387. second derivative. The default is 1.5.</font></td>
  1388. </tr>
  1389. <tr>
  1390. <td style="text-align: center;">
  1391. <center><a name="shade"></a> <font size="-1">shade</font></center>
  1392. </td>
  1393. <td><font size="-1">double azimuth_ = 30, double elevation_ = 30,</font>
  1394. <br>
  1395. <font size="-1">bool colorShading_ = false</font></td>
  1396. <td><font size="-1">Shade image using distant light source.
  1397. Specify <i> azimuth_</i> and <i>elevation_</i> as the
  1398. position of the light source. By default, the shading
  1399. results as a grayscale image.. Set c<i>olorShading_</i> to <i>true</i>
  1400. to
  1401. shade the red, green, and blue components of the image.</font></td>
  1402. </tr>
  1403. <tr>
  1404. <td style="text-align: center;">
  1405. <center><a name="shadow"></a> <font size="-1">shadow</font></center>
  1406. </td>
  1407. <td><font size="-1">const double percent_opacity = 80, const double sigma_
  1408. = 0.5, const ssize_t x_ = 0, const ssize_t y_ = 0</font></td>
  1409. <td><font size="-1">simulate an image shadow</font></td>
  1410. </tr>
  1411. <tr>
  1412. <td style="text-align: center;">
  1413. <center><a name="sharpen"></a> <font size="-1">sharpen</font></center>
  1414. </td>
  1415. <td><font size="-1">const double radius_ = 1, const double sigma_
  1416. = 0.5</font></td>
  1417. <td><font size="-1">Sharpen pixels in image. The <i>radius_</i>
  1418. parameter specifies the radius of the Gaussian, in pixels, not counting
  1419. the center pixel. The <i>sigma_</i> parameter specifies the
  1420. standard deviation of the Laplacian, in pixels.</font></td>
  1421. </tr>
  1422. <tr>
  1423. <td style="vertical-align: middle; text-align: center;"><small><a
  1424. name="sharpenChannel"></a>sharpenChannel<br>
  1425. </small></td>
  1426. <td style="vertical-align: middle;"><small>const ChannelType
  1427. channel_, const double radius_ = 0.0, const double sigma_ = 1.0<br>
  1428. </small></td>
  1429. <td style="vertical-align: middle;"><font size="-1">Sharpen pixel
  1430. quantums in an image channel The <span
  1431. style="font-style: italic;">channel_</span> parameter specifies the
  1432. channel to sharpen.. The <i>radius_</i>
  1433. parameter specifies the radius of the Gaussian, in pixels, not counting
  1434. the center pixel. The <i>sigma_</i> parameter specifies the
  1435. standard deviation of the Laplacian, in pixels.</font></td>
  1436. </tr>
  1437. <tr>
  1438. <td style="text-align: center;">
  1439. <center><a name="shave"></a> <font size="-1">shave</font></center>
  1440. </td>
  1441. <td><font size="-1">const Geometry &amp;geometry_</font></td>
  1442. <td><font size="-1">Shave pixels from image edges.</font></td>
  1443. </tr>
  1444. <tr>
  1445. <td style="text-align: center;">
  1446. <center><a name="shear"></a> <font size="-1">shear</font></center>
  1447. </td>
  1448. <td><font size="-1">double xShearAngle_, double yShearAngle_</font></td>
  1449. <td><font size="-1">Shear image (create parallelogram by sliding
  1450. image by X or Y axis). Shearing slides one edge of an image along
  1451. the X or Y axis, creating a
  1452. parallelogram. An X direction shear slides an edge along the X
  1453. axis, while a Y direction shear slides
  1454. an edge along the Y axis. The amount of the shear is controlled
  1455. by a shear angle. For X direction shears, x
  1456. degrees is measured relative to the Y axis, and similarly, for Y
  1457. direction shears y degrees is measured relative to the X
  1458. axis. Empty triangles left over from shearing the image are
  1459. filled with the color defined as <i>borderColor</i>. </font></td>
  1460. </tr>
  1461. <tr>
  1462. <td style="text-align: center;">
  1463. <center><a name="solarize"></a> <font size="-1">solarize</font></center>
  1464. </td>
  1465. <td><font size="-1">double factor_ = 50.0</font></td>
  1466. <td><font size="-1">Solarize image (similar to effect seen when
  1467. exposing a photographic film to light during the development process)</font></td>
  1468. </tr>
  1469. <tr>
  1470. <td style="text-align: center;">
  1471. <center><a name="splice"></a> <font size="-1">splice</font></center>
  1472. </td>
  1473. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  1474. &amp;geometry_</font></td>
  1475. <td><font size="-1">splice the background color into the image</font></td>
  1476. </tr>
  1477. <tr>
  1478. <td style="text-align: center;">
  1479. <center><a name="spread"></a> <font size="-1">spread</font></center>
  1480. </td>
  1481. <td><font size="-1">size_t amount_ = 3</font></td>
  1482. <td><font size="-1">Spread pixels randomly within image by
  1483. specified amount</font></td>
  1484. </tr>
  1485. <tr>
  1486. <td style="text-align: center;">
  1487. <center><a name="stegano"></a> <font size="-1">stegano</font></center>
  1488. </td>
  1489. <td><font size="-1">const Image &amp;watermark_</font></td>
  1490. <td><font size="-1">Add a digital watermark to the image (based
  1491. on second image)</font></td>
  1492. </tr>
  1493. <tr>
  1494. <td>
  1495. <center><a name="sparseColor"></a> <font size="-1">sparseColor</font></center>
  1496. </td>
  1497. <td><font size="-1">const ChannelType channel, const SparseColorMethod method, const size_t number_arguments, const double *arguments </font></td>
  1498. <td><font size="-1">Sparse color image, given a set of coordinates, interpolates the colors found at those coordinates, across the whole image, using various methods.</font></td>
  1499. </tr>
  1500. <tr>
  1501. <td style="text-align: center;">
  1502. <center><a name="statistics"></a> <font size="-1">statistics</font></center>
  1503. </td>
  1504. <td><font size="-1">ImageStatistics *statistics</font></td>
  1505. <td><font size="-1">Obtain image statistics. Statistics are normalized to the range of 0.0 to 1.0 and are output to the specified ImageStatistics structure. The structure includes members maximum, minimum, mean, standard_deviation, and variance for each of these channels: red, green, blue, and opacity (e.g. statistics->red.maximum).</font></td>
  1506. </tr>
  1507. <tr>
  1508. <td style="text-align: center;">
  1509. <center><a name="stereo"></a> <font size="-1">stereo</font></center>
  1510. </td>
  1511. <td><font size="-1">const Image &amp;rightImage_</font></td>
  1512. <td><font size="-1">Create an image which appears in stereo when
  1513. viewed with red-blue glasses (Red image on left, blue on right)</font></td>
  1514. </tr>
  1515. <tr>
  1516. <td style="text-align: center;">
  1517. <center><a name="swirl"></a> <font size="-1">swirl</font></center>
  1518. </td>
  1519. <td><font size="-1">double degrees_</font></td>
  1520. <td><font size="-1">Swirl image (image pixels are rotated by
  1521. degrees)</font></td>
  1522. </tr>
  1523. <tr>
  1524. <td style="text-align: center;">
  1525. <center><a name="texture"></a> <font size="-1">texture</font></center>
  1526. </td>
  1527. <td><font size="-1">const Image &amp;texture_</font></td>
  1528. <td><font size="-1">Layer a texture on pixels matching image
  1529. background color.</font></td>
  1530. </tr>
  1531. <tr>
  1532. <td style="text-align: center;">
  1533. <center><a name="threshold"></a> <font size="-1">threshold</font></center>
  1534. </td>
  1535. <td><font size="-1">double threshold_</font></td>
  1536. <td><font size="-1">Threshold image</font></td>
  1537. </tr>
  1538. <tr>
  1539. <td style="text-align: center;" rowspan="2">
  1540. <center><a name="transform"></a> <font size="-1">transform</font></center>
  1541. </td>
  1542. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  1543. &amp;imageGeometry_</font></td>
  1544. <td rowspan="2"><font size="-1">Transform image based on image
  1545. and crop geometries. Crop geometry is optional.</font></td>
  1546. </tr>
  1547. <tr>
  1548. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  1549. &amp;imageGeometry_, const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  1550. &amp;cropGeometry_ </font></td>
  1551. </tr>
  1552. <tr>
  1553. <td style="text-align: center;">
  1554. <center><a name="transparent"></a> <font size="-1">transparent</font></center>
  1555. </td>
  1556. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Color.html">Color</a>
  1557. &amp;color_</font></td>
  1558. <td><font size="-1">Add matte image to image, setting pixels
  1559. matching color to transparent.</font></td>
  1560. </tr>
  1561. <tr>
  1562. <td style="text-align: center;">
  1563. <center><a name="trim"></a> <font size="-1">trim</font></center>
  1564. </td>
  1565. <td><font size="-1">void</font></td>
  1566. <td><font size="-1">Trim edges that are the background color from
  1567. the image.</font></td>
  1568. </tr>
  1569. <tr>
  1570. <td style="text-align: center;">
  1571. <center><a name="unsharpmask"></a> <font size="-1">unsharpmask</font></center>
  1572. </td>
  1573. <td><font size="-1">double radius_, double sigma_, double
  1574. amount_, double threshold_</font></td>
  1575. <td><font size="-1">Sharpen the image using the unsharp mask
  1576. algorithm. The <i>radius</i>_
  1577. parameter specifies the radius of the Gaussian, in pixels, not
  1578. counting the center pixel. The <i>sigma</i>_ parameter specifies the
  1579. standard deviation of the Gaussian, in pixels. The <i>amount</i>_
  1580. parameter specifies the percentage of the difference between the
  1581. original and the blur image that is added back into the original. The <i>threshold</i>_
  1582. parameter specifies the threshold in pixels needed to apply the
  1583. difference amount.</font></td>
  1584. </tr>
  1585. <tr>
  1586. <td style="vertical-align: middle; text-align: center;"><small><a
  1587. name="unsharpmaskChannel"></a>unsharpmaskChannel<br>
  1588. </small></td>
  1589. <td style="vertical-align: middle;"><small>const ChannelType
  1590. channel_, const double radius_, const double sigma_, const double
  1591. amount_, const double threshold_<br>
  1592. </small></td>
  1593. <td style="vertical-align: middle;"><small>Sharpen an image
  1594. channel using the unsharp mask algorithm. The <span
  1595. style="font-style: italic;">channel_</span> parameter specifies the
  1596. channel to sharpen. </small><font size="-1">The <i>radius</i>_
  1597. parameter specifies the radius of the Gaussian, in pixels, not
  1598. counting the center pixel. The <i>sigma</i>_ parameter specifies the
  1599. standard deviation of the Gaussian, in pixels. The <i>amount</i>_
  1600. parameter specifies the percentage of the difference between the
  1601. original and the blur image that is added back into the original. The <i>threshold</i>_
  1602. parameter specifies the threshold in pixels needed to apply the
  1603. difference amount.</font></td>
  1604. </tr>
  1605. <tr>
  1606. <td style="text-align: center;">
  1607. <center><a name="wave"></a> <font size="-1">wave</font></center>
  1608. </td>
  1609. <td><font size="-1">double amplitude_ = 25.0, double wavelength_
  1610. = 150.0</font></td>
  1611. <td><font size="-1">Alter an image along a sine wave.</font></td>
  1612. </tr>
  1613. <tr>
  1614. <td style="text-align: center;" rowspan="5">
  1615. <center><a name="write"></a> <font size="-1">write</font></center>
  1616. </td>
  1617. <td><font size="-1">const string &amp;imageSpec_</font></td>
  1618. <td><font size="-1">Write image to a file using filename i<i>mageSpec_</i>
  1619. .</font> <br>
  1620. <font size="-1"><b><font color="#ff0000">Caution: </font></b> if
  1621. an image format is selected which is capable of supporting fewer
  1622. colors than the original image or quantization has been requested, the
  1623. original image will be quantized to fewer colors. Use a copy of the
  1624. original if this is a problem.</font></td>
  1625. </tr>
  1626. <tr>
  1627. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a> *blob_</font></td>
  1628. <td rowspan="3"><font size="-1">Write image to a in-memory <a
  1629. href="http://www.imagemagick.org/Magick++/Blob.html"> BLOB</a> stored in <i>blob_</i>. The <i>magick</i>_
  1630. parameter specifies the image format to write (defaults to <a
  1631. href="Image++.html#magick">magick</a> ). The depth_ parameter species the image
  1632. depth (defaults to <a href="Image++.html#depth"> depth</a> ).</font> <br>
  1633. <font size="-1"><b><font color="#ff0000">Caution: </font></b> if
  1634. an image format is selected which is capable of supporting fewer
  1635. colors than the original image or quantization has been requested, the
  1636. original image will be quantized to fewer colors. Use a copy of the
  1637. original if this is a problem.</font></td>
  1638. </tr>
  1639. <tr>
  1640. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a> *blob_,
  1641. std::string &amp;magick_</font></td>
  1642. </tr>
  1643. <tr>
  1644. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a> *blob_,
  1645. std::string &amp;magick_, size_t depth_</font></td>
  1646. </tr>
  1647. <tr>
  1648. <td><font size="-1">const ssize_t x_, const ssize_t y_, const size_t
  1649. columns_, const size_t rows_, const std::string &amp;map_,
  1650. const StorageType type_, void *pixels_</font></td>
  1651. <td><font size="-1">Write pixel data into a buffer you supply.
  1652. The data is saved either as char, short int, integer, float or double
  1653. format in the order specified by the type_ parameter. For example, we
  1654. want to extract scanline 1 of a 640x480 image as character data in
  1655. red-green-blue order:</font>
  1656. <p><font size="-1"> image.write(0,0,640,1,"RGB",0,pixels);</font>
  1657. </p>
  1658. <p><font size="-1">The parameters are as follows:</font> <br>
  1659. <table border="0" width="100%">
  1660. <tbody>
  1661. <tr>
  1662. <td><font size="-1">x_</font></td>
  1663. <td><font size="-1">Horizontal ordinate of left-most
  1664. coordinate of region to extract.</font></td>
  1665. </tr>
  1666. <tr>
  1667. <td><font size="-1">y_</font></td>
  1668. <td><font size="-1">Vertical ordinate of top-most
  1669. coordinate of region to extract.</font></td>
  1670. </tr>
  1671. <tr>
  1672. <td><font size="-1">columns_</font></td>
  1673. <td><font size="-1">Width in pixels of the region to
  1674. extract.</font></td>
  1675. </tr>
  1676. <tr>
  1677. <td><font size="-1">rows_</font></td>
  1678. <td><font size="-1">Height in pixels of the region to
  1679. extract.</font></td>
  1680. </tr>
  1681. <tr>
  1682. <td><font size="-1">map_</font></td>
  1683. <td><font size="-1">This character string can be any
  1684. combination or order of R = red, G = green, B = blue, A = alpha, C =
  1685. cyan, Y = yellow, M = magenta, and K = black. The ordering reflects
  1686. the order of the pixels in the supplied pixel array.</font></td>
  1687. </tr>
  1688. <tr>
  1689. <td><font size="-1">type_</font></td>
  1690. <td><font size="-1">Pixel storage type (CharPixel,
  1691. ShortPixel, IntegerPixel, FloatPixel, or DoublePixel)</font></td>
  1692. </tr>
  1693. <tr>
  1694. <td><font size="-1">pixels_</font></td>
  1695. <td><font size="-1">This array of values contain the pixel
  1696. components as defined by the map_ and type_ parameters. The length of
  1697. the arrays must equal the area specified by the width_ and height_
  1698. values and type_ parameters.</font></td>
  1699. </tr>
  1700. </tbody>
  1701. </table>
  1702. </p>
  1703. </td>
  1704. </tr>
  1705. <tr>
  1706. <td style="text-align: center;">
  1707. <center><a name="resize"></a> <font size="-1">resize</font></center>
  1708. </td>
  1709. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  1710. &amp;geometry_</font></td>
  1711. <td><font size="-1">Resize image to specified size.</font></td>
  1712. </tr>
  1713. </tbody>
  1714. </table></ul>
  1715. </p>
  1716. </div>
  1717. <h2> <a name="Image Attributes"></a> Image Attributes</h2>
  1718. <div class="doc-section">
  1719. Image attributes are set and obtained via methods in Image. Except for
  1720. methods which accept pointer arguments (e.g. c<tt>hromaBluePrimary)</tt>
  1721. all methods return attributes by value.
  1722. <p>Image attributes are easily used. For example, to set the resolution
  1723. of the TIFF file "file.tiff" to 150 dots-per-inch (DPI) in both the
  1724. horizontal and vertical directions, you can use the following example
  1725. code: </p>
  1726. <pre class="code">
  1727. string filename("file.tiff");
  1728. Image image;
  1729. image.read(filename);
  1730. image.resolutionUnits(PixelsPerInchResolution);
  1731. image.density(Geometry(150,150)); // could also use image.density("150x150")
  1732. image.write(filename)
  1733. </pre>
  1734. The supported image attributes and the method arguments required to
  1735. obtain them are shown in the following table: <br>
  1736. <ul><table border="1">
  1737. <caption>Image Attributes</caption> <tbody>
  1738. <tr>
  1739. <td>
  1740. <center><b>Function</b></center>
  1741. </td>
  1742. <td>
  1743. <center><b>Type</b></center>
  1744. </td>
  1745. <td>
  1746. <center><b>Get Signature</b></center>
  1747. </td>
  1748. <td>
  1749. <center><b>Set Signature</b></center>
  1750. </td>
  1751. <td>
  1752. <center><b>Description</b></center>
  1753. </td>
  1754. </tr>
  1755. <tr>
  1756. <td>
  1757. <center><a name="adjoin"></a> <font size="-1">adjoin</font></center>
  1758. </td>
  1759. <td><font size="-1">bool</font></td>
  1760. <td><font size="-1">void</font></td>
  1761. <td><font size="-1">bool flag_</font></td>
  1762. <td><font size="-1">Join images into a single multi-image file.</font></td>
  1763. </tr>
  1764. <tr>
  1765. <td>
  1766. <center><a name="antiAlias"></a> <font size="-1">antiAlias</font></center>
  1767. </td>
  1768. <td><font size="-1">bool</font></td>
  1769. <td><font size="-1">void</font></td>
  1770. <td><font size="-1">bool flag_</font></td>
  1771. <td><font size="-1">Control antialiasing of rendered Postscript
  1772. and Postscript or TrueType fonts. Enabled by default.</font></td>
  1773. </tr>
  1774. <tr>
  1775. <td>
  1776. <center><a name="animationDelay"></a> <font size="-1">animation-</font>
  1777. <br>
  1778. <font size="-1">Delay</font></center>
  1779. </td>
  1780. <td><font size="-1">size_t (0 to 65535)</font></td>
  1781. <td><font size="-1">void</font></td>
  1782. <td><font size="-1">size_t delay_</font></td>
  1783. <td><font size="-1">Time in 1/100ths of a second (0 to 65535)
  1784. which must expire before displaying the next image in an animated
  1785. sequence. This option is useful for regulating the animation of a
  1786. sequence of GIF images within Netscape.</font></td>
  1787. </tr>
  1788. <tr>
  1789. <td>
  1790. <center><a name="animationIterations"></a> <font size="-1">animation-</font>
  1791. <br>
  1792. <font size="-1">Iterations</font></center>
  1793. </td>
  1794. <td><font size="-1">size_t</font></td>
  1795. <td><font size="-1">void</font></td>
  1796. <td><font size="-1">size_t iterations_</font></td>
  1797. <td><font size="-1">Number of iterations to loop an animation
  1798. (e.g. Netscape loop extension) for.</font></td>
  1799. </tr>
  1800. <tr>
  1801. <td style="vertical-align: middle; text-align: center;"><small><a
  1802. name="attribute"></a>attribute<br>
  1803. </small></td>
  1804. <td style="vertical-align: middle;"><small>string<br>
  1805. </small></td>
  1806. <td style="vertical-align: top;" valign="top"><small>const
  1807. std::string name_<br>
  1808. </small></td>
  1809. <td style="vertical-align: top;" valign="top"><small>const
  1810. std::string name_, const std::string value_</small></td>
  1811. <td style="vertical-align: middle;"><small>An arbitrary named
  1812. image attribute. Any number of named attributes may be attached to the
  1813. image. For example, the image comment is a named image attribute with
  1814. the name "comment". EXIF tags are attached to the image as named
  1815. attributes. Use the syntax "EXIF:&lt;tag&gt;" to request an EXIF tag
  1816. similar to "EXIF:DateTime".</small><br>
  1817. </td>
  1818. </tr>
  1819. <tr>
  1820. <td>
  1821. <center><a name="backgroundColor"></a> <font size="-1">background-</font>
  1822. <br>
  1823. <font size="-1">Color</font></center>
  1824. </td>
  1825. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Color.html">Color</a> </font></td>
  1826. <td><font size="-1">void</font></td>
  1827. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Color.html">Color</a>
  1828. &amp;color_</font></td>
  1829. <td><font size="-1">Image background color</font></td>
  1830. </tr>
  1831. <tr>
  1832. <td>
  1833. <center><a name="backgroundTexture"></a> <font size="-1">background-</font>
  1834. <br>
  1835. <font size="-1">Texture</font></center>
  1836. </td>
  1837. <td><font size="-1">string</font></td>
  1838. <td><font size="-1">void</font></td>
  1839. <td><font size="-1">const string &amp;texture_</font></td>
  1840. <td><font size="-1">Image file name to use as the background
  1841. texture. Does not modify image pixels.</font></td>
  1842. </tr>
  1843. <tr>
  1844. <td>
  1845. <center><a name="baseColumns"></a> <font size="-1">baseColumns</font></center>
  1846. </td>
  1847. <td><font size="-1">size_t</font></td>
  1848. <td><font size="-1">void</font></td>
  1849. <td bgcolor="#666666"><font size="-1"> </font></td>
  1850. <td><font size="-1">Base image width (before transformations)</font></td>
  1851. </tr>
  1852. <tr>
  1853. <td>
  1854. <center><a name="baseFilename"></a> <font size="-1">baseFilename</font></center>
  1855. </td>
  1856. <td><font size="-1">string</font></td>
  1857. <td><font size="-1">void</font></td>
  1858. <td bgcolor="#666666"><font size="-1"> </font></td>
  1859. <td><font size="-1">Base image filename (before transformations)</font></td>
  1860. </tr>
  1861. <tr>
  1862. <td>
  1863. <center><a name="baseRows"></a> <font size="-1">baseRows</font></center>
  1864. </td>
  1865. <td><font size="-1">size_t</font></td>
  1866. <td><font size="-1">void</font></td>
  1867. <td bgcolor="#666666"><font size="-1"> </font></td>
  1868. <td><font size="-1">Base image height (before transformations)</font></td>
  1869. </tr>
  1870. <tr>
  1871. <td>
  1872. <center><a name="borderColor"></a> <font size="-1">borderColor</font></center>
  1873. </td>
  1874. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Color.html">Color</a> </font></td>
  1875. <td><font size="-1">void</font></td>
  1876. <td><font size="-1"> const <a href="http://www.imagemagick.org/Magick++/Color.html">Color</a>
  1877. &amp;color_</font></td>
  1878. <td><font size="-1">Image border color</font></td>
  1879. </tr>
  1880. <tr>
  1881. <td><a name="boundingBox"></a> <font size="-1">boundingBox</font></td>
  1882. <td><font size="-1">Geometry</font></td>
  1883. <td><font size="-1">void</font></td>
  1884. <td bgcolor="#666666"><font size="-1"> </font></td>
  1885. <td><font size="-1">Return smallest bounding box enclosing
  1886. non-border pixels. The current fuzz value is used when discriminating
  1887. between pixels. This is the crop bounding box used by
  1888. crop(Geometry(0,0)).</font></td>
  1889. </tr>
  1890. <tr>
  1891. <td>
  1892. <center><a name="boxColor"></a> <font size="-1">boxColor</font></center>
  1893. </td>
  1894. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Color.html">Color</a> </font></td>
  1895. <td><font size="-1">void</font></td>
  1896. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Color.html">Color</a>
  1897. &amp;boxColor_</font></td>
  1898. <td><font size="-1">Base color that annotation text is rendered
  1899. on.</font></td>
  1900. </tr>
  1901. <tr>
  1902. <td><a name="cacheThreshold"></a> <font size="-1">cacheThreshold</font></td>
  1903. <td><font size="-1">size_t</font></td>
  1904. <td bgcolor="#666666"><font size="-1"> </font></td>
  1905. <td><font size="-1">const size_t</font></td>
  1906. <td><font size="-1">Pixel cache threshold in megabytes. Once this
  1907. threshold is exceeded, all subsequent pixels cache operations are
  1908. to/from disk. This is a static method and the attribute it sets is
  1909. shared by all Image objects.</font></td>
  1910. </tr>
  1911. <tr>
  1912. <td style="vertical-align: middle;" valign="middle"><small><a
  1913. name="channelDepth"></a>channelDepth<br>
  1914. </small></td>
  1915. <td style="vertical-align: middle;" valign="middle"><small>size_t
  1916. <br>
  1917. </small></td>
  1918. <td style="vertical-align: middle;" valign="middle"><small>const
  1919. ChannelType channel_<br>
  1920. </small></td>
  1921. <td style="vertical-align: middle;"><small>const ChannelType
  1922. channel_, const size_t depth_<br>
  1923. </small></td>
  1924. <td style="vertical-align: middle;"><small>Channel modulus depth.
  1925. The channel modulus depth represents the minimum number of bits
  1926. required
  1927. to support the channel without loss. Setting the channel's modulus
  1928. depth
  1929. modifies the channel (i.e. discards resolution) if the requested
  1930. modulus
  1931. depth is less than the current modulus depth, otherwise the channel is
  1932. not altered. There is no attribute associated with the modulus depth so
  1933. the current modulus depth is obtained by inspecting the pixels. As a
  1934. result, the depth returned may be less than the most recently set
  1935. channel depth. Subsequent image processing may result in increasing the
  1936. channel depth.<br>
  1937. </small></td>
  1938. </tr>
  1939. <tr>
  1940. <td>
  1941. <center><a name="chromaBluePrimary"></a> <font size="-1">chroma-</font>
  1942. <br>
  1943. <font size="-1">BluePrimary</font></center>
  1944. </td>
  1945. <td><font size="-1">double x &amp; y</font></td>
  1946. <td><font size="-1">double *x_, double *y_</font></td>
  1947. <td><font size="-1">double x_, double y_</font></td>
  1948. <td><font size="-1">Chromaticity blue primary point (e.g. x=0.15,
  1949. y=0.06)</font></td>
  1950. </tr>
  1951. <tr>
  1952. <td>
  1953. <center><a name="chromaGreenPrimary"></a> <font size="-1">chroma-</font>
  1954. <br>
  1955. <font size="-1">GreenPrimary</font></center>
  1956. </td>
  1957. <td><font size="-1">double x &amp; y</font></td>
  1958. <td><font size="-1">double *x_, double *y_</font></td>
  1959. <td><font size="-1">double x_, double y_</font></td>
  1960. <td><font size="-1">Chromaticity green primary point (e.g. x=0.3,
  1961. y=0.6)</font></td>
  1962. </tr>
  1963. <tr>
  1964. <td>
  1965. <center><a name="chromaRedPrimary"></a> <font size="-1">chroma-</font>
  1966. <br>
  1967. <font size="-1">RedPrimary</font></center>
  1968. </td>
  1969. <td><font size="-1">double x &amp; y</font></td>
  1970. <td><font size="-1">double *x_, double *y_</font></td>
  1971. <td><font size="-1">double x_, double y_</font></td>
  1972. <td><font size="-1">Chromaticity red primary point (e.g. x=0.64,
  1973. y=0.33)</font></td>
  1974. </tr>
  1975. <tr>
  1976. <td>
  1977. <center><a name="chromaWhitePoint"></a> <font size="-1">chroma-</font>
  1978. <br>
  1979. <font size="-1">WhitePoint</font></center>
  1980. </td>
  1981. <td><font size="-1">double x &amp; y</font></td>
  1982. <td><font size="-1">double*x_, double *y_</font></td>
  1983. <td><font size="-1">double x_, double y_</font></td>
  1984. <td><font size="-1">Chromaticity white point (e.g. x=0.3127,
  1985. y=0.329)</font></td>
  1986. </tr>
  1987. <tr>
  1988. <td>
  1989. <center><a name="classType"></a> <font size="-1">classType</font></center>
  1990. </td>
  1991. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#ClassType">ClassType</a>
  1992. </font></td>
  1993. <td><font size="-1">void</font></td>
  1994. <td><font size="-1"> <a href="http://www.imagemagick.org/Magick++/Enumerations.html#ClassType">ClassType</a>
  1995. class_</font></td>
  1996. <td><font size="-1">Image storage class. Note that
  1997. conversion from a DirectClass image to a PseudoClass image may result
  1998. in a loss of color due to the limited size of the palette (256 or
  1999. 65535 colors).</font></td>
  2000. </tr>
  2001. <tr>
  2002. <td>
  2003. <center><a name="clipMask"></a> <font size="-1">clipMask</font></center>
  2004. </td>
  2005. <td><font size="-1">Image</font></td>
  2006. <td><font size="-1">void</font></td>
  2007. <td><font size="-1">const Image &amp;clipMask_</font></td>
  2008. <td><font size="-1">Associate a clip mask image with the current
  2009. image. The clip mask image must have the same dimensions as the current
  2010. image or an exception is thrown. Clipping occurs wherever pixels are
  2011. transparent in the clip mask image. Clipping Pass an invalid image to
  2012. unset an existing clip mask.</font></td>
  2013. </tr>
  2014. <tr>
  2015. <td>
  2016. <center><a name="colorFuzz"></a> <font size="-1">colorFuzz</font></center>
  2017. </td>
  2018. <td><font size="-1">double</font></td>
  2019. <td><font size="-1">void</font></td>
  2020. <td><font size="-1">double fuzz_</font></td>
  2021. <td><font size="-1">Colors within this distance are considered
  2022. equal. A number of algorithms search for a target color. By
  2023. default the color must be exact. Use this option to match colors that
  2024. are close to the target color in RGB space.</font></td>
  2025. </tr>
  2026. <tr>
  2027. <td>
  2028. <center><a name="colorMap"></a> <font size="-1">colorMap</font></center>
  2029. </td>
  2030. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Color.html">Color</a> </font></td>
  2031. <td><font size="-1">size_t index_</font></td>
  2032. <td><font size="-1">size_t index_, const <a
  2033. href="http://www.imagemagick.org/Magick++/Color.html"> Color</a> &amp;color_</font></td>
  2034. <td><font size="-1">Color at colormap index.</font></td>
  2035. </tr>
  2036. <tr>
  2037. <td valign="middle">
  2038. <div align="center"><a name="colorMapSize"></a> <font size="-1">colorMapSize<br>
  2039. </font></div>
  2040. </td>
  2041. <td valign="middle"><font size="-1">size_t<br>
  2042. </font></td>
  2043. <td valign="middle"><font size="-1">void<br>
  2044. </font></td>
  2045. <td valign="middle"><font size="-1">size_t entries_<br>
  2046. </font></td>
  2047. <td valign="middle"><font size="-1">Number of entries in the
  2048. colormap. Setting the colormap size may extend or truncate the
  2049. colormap.
  2050. The maximum number of supported entries is specified by the <i>MaxColormapSize</i>constant,
  2051. and is dependent on the value of QuantumDepth when ImageMagick is
  2052. compiled. An exception is thrown if more entries are requested than may
  2053. be supported. Care should be taken when truncating the colormap to
  2054. ensure that the image colormap indexes reference valid colormap entries.</font><br>
  2055. </td>
  2056. </tr>
  2057. <tr>
  2058. <td>
  2059. <center><a name="colorSpace"></a> <font size="-1">colorSpace</font></center>
  2060. </td>
  2061. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#ColorspaceType">ColorspaceType</a>
  2062. colorSpace_</font></td>
  2063. <td><font size="-1">void</font></td>
  2064. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#ColorspaceType">ColorspaceType</a>
  2065. colorSpace_</font></td>
  2066. <td><font size="-1">The colorspace (e.g. CMYK) used to represent
  2067. the image pixel colors. Image pixels are always stored as RGB(A) except
  2068. for the case of CMY(K).</font></td>
  2069. </tr>
  2070. <tr>
  2071. <td>
  2072. <center><a name="columns"></a> <font size="-1">columns</font></center>
  2073. </td>
  2074. <td><font size="-1">size_t</font></td>
  2075. <td><font size="-1">void</font></td>
  2076. <td bgcolor="#666666"><font size="-1"> </font></td>
  2077. <td><font size="-1">Image width</font></td>
  2078. </tr>
  2079. <tr>
  2080. <td>
  2081. <center><a name="comment"></a> <font size="-1">comment</font></center>
  2082. </td>
  2083. <td><font size="-1">string</font></td>
  2084. <td><font size="-1">void</font></td>
  2085. <td bgcolor="#666666"><font size="-1"> </font></td>
  2086. <td><font size="-1">Image comment</font></td>
  2087. </tr>
  2088. <tr>
  2089. <td>
  2090. <center><a name="compose"></a> <font size="-1">compose</font></center>
  2091. </td>
  2092. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#CompositeOperator">CompositeOperator</a>
  2093. </font></td>
  2094. <td><small><font size="-1"><small>void</small></font></small></td>
  2095. <td><small><font size="-1"><small><a
  2096. href="http://www.imagemagick.org/Magick++/Enumerations.html#CompositeOperator">CompositeOperator</a>
  2097. compose_</small></font></small></td>
  2098. <td><font size="-1">Composition operator to be used when
  2099. composition is implicitly used (such as for image flattening).</font></td>
  2100. </tr>
  2101. <tr>
  2102. <td>
  2103. <center><a name="compressType"></a> <font size="-1">compress-</font>
  2104. <br>
  2105. <font size="-1">Type</font></center>
  2106. </td>
  2107. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#CompressionType">CompressionType</a>
  2108. </font></td>
  2109. <td><small><font size="-1"><small>void</small></font></small></td>
  2110. <td><small><font size="-1"><small><a
  2111. href="http://www.imagemagick.org/Magick++/Enumerations.html#CompressionType">CompressionType</a>
  2112. compressType_</small></font></small></td>
  2113. <td><font size="-1">Image compresion type. The default is the
  2114. compression type of the specified image file.</font></td>
  2115. </tr>
  2116. <tr>
  2117. <td>
  2118. <center><a name="debug"></a> <font size="-1">debug</font></center>
  2119. </td>
  2120. <td><font size="-1">bool</font></td>
  2121. <td><small><font size="-1"><small>void</small></font></small></td>
  2122. <td><small><font size="-1"><small>bool flag_</small></font></small></td>
  2123. <td><font size="-1">Enable printing of internal debug messages
  2124. from ImageMagick as it executes.</font></td>
  2125. </tr>
  2126. <tr>
  2127. <td style="text-align: center; vertical-align: middle;"><small><a
  2128. name="defineValue"></a>defineValue<br>
  2129. </small></td>
  2130. <td style="vertical-align: middle; text-align: left;"><small>string<br>
  2131. </small></td>
  2132. <td style="vertical-align: middle;"><small>const std::string
  2133. &amp;magick_, const std::string &amp;key_<br>
  2134. </small></td>
  2135. <td style="vertical-align: middle;"><small>const std::string
  2136. &amp;magick_, const std::string &amp;key_, const std::string
  2137. &amp;value_<br>
  2138. </small></td>
  2139. <td style="vertical-align: top;"><small>Set or obtain a
  2140. definition string to applied when encoding or decoding the specified
  2141. format. The meanings of the definitions are format specific. The format
  2142. is designated by the <span style="font-style: italic;">magick_</span>
  2143. argument, the format-specific key is designated by <span
  2144. style="font-style: italic;">key_</span>, and the associated value is
  2145. specified by <span style="font-style: italic;">value_</span>. See the
  2146. defineSet() method if the key must be removed entirely.</small><br>
  2147. </td>
  2148. </tr>
  2149. <tr>
  2150. <td style="text-align: center; vertical-align: middle;"><small><a
  2151. name="defineSet"></a>defineSet<br>
  2152. </small></td>
  2153. <td style="vertical-align: middle; text-align: left;"><small>bool<br>
  2154. </small></td>
  2155. <td style="vertical-align: middle;"><small>const std::string
  2156. &amp;magick_, const std::string &amp;key_<br>
  2157. </small></td>
  2158. <td style="vertical-align: middle;"><small>const std::string
  2159. &amp;magick_, const std::string &amp;key_, bool flag_<br>
  2160. </small></td>
  2161. <td style="vertical-align: middle;"><small>Set or obtain a
  2162. definition flag to applied when encoding or decoding the specified
  2163. format.</small><small>. Similar to the defineValue() method except that
  2164. passing the <span style="font-style: italic;">flag_</span> value
  2165. 'true'
  2166. creates a value-less define with that format and key. Passing the <span
  2167. style="font-style: italic;">f</span><span style="font-style: italic;">lag_</span>
  2168. value 'false' removes any existing matching definition. The method
  2169. returns 'true' if a matching key exists, and 'false' if no matching key
  2170. exists.<br>
  2171. </small></td>
  2172. </tr>
  2173. <tr>
  2174. <td>
  2175. <center><a name="density"></a> <font size="-1">density</font></center>
  2176. </td>
  2177. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  2178. (default 72x72)</font></td>
  2179. <td><font size="-1">void</font></td>
  2180. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  2181. &amp;density_</font></td>
  2182. <td><font size="-1">Vertical and horizontal resolution in pixels
  2183. of the image. This option specifies an image density when decoding a
  2184. Postscript or Portable Document page. Often used with <i>psPageSize</i>.</font></td>
  2185. </tr>
  2186. <tr>
  2187. <td>
  2188. <center><a name="depth"></a> <font size="-1">depth</font></center>
  2189. </td>
  2190. <td><font size="-1"> size_t (8-32)</font></td>
  2191. <td><font size="-1">void</font></td>
  2192. <td><font size="-1">size_t depth_</font></td>
  2193. <td><font size="-1">Image depth. Used to specify the bit depth
  2194. when reading or writing raw images or when the output format
  2195. supports multiple depths. Defaults to the quantum depth that
  2196. ImageMagick is compiled with.</font></td>
  2197. </tr>
  2198. <tr>
  2199. <td>
  2200. <center><a name="endian"></a> <font size="-1">endian</font></center>
  2201. </td>
  2202. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#EndianType">EndianType</a>
  2203. </font></td>
  2204. <td><font size="-1">void</font></td>
  2205. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#EndianType">EndianType</a>
  2206. endian_</font></td>
  2207. <td><font size="-1">Specify (or obtain) endian option for formats
  2208. which support it.</font></td>
  2209. </tr>
  2210. <tr>
  2211. <td>
  2212. <center><a name="directory"></a> <font size="-1">directory</font></center>
  2213. </td>
  2214. <td><font size="-1">string</font></td>
  2215. <td><font size="-1">void</font></td>
  2216. <td><font size="-1"> </font></td>
  2217. <td><font size="-1">Tile names from within an image montage</font></td>
  2218. </tr>
  2219. <tr>
  2220. <td>
  2221. <center><a name="file"></a> <font size="-1">file</font></center>
  2222. </td>
  2223. <td><font size="-1">FILE *</font></td>
  2224. <td><font size="-1">FILE *</font></td>
  2225. <td><font size="-1">FILE *file_</font></td>
  2226. <td><font size="-1">Image file descriptor.</font></td>
  2227. </tr>
  2228. <tr>
  2229. <td>
  2230. <center><a name="fileName"></a> <font size="-1">fileName</font></center>
  2231. </td>
  2232. <td><font size="-1">string</font></td>
  2233. <td><font size="-1">void</font></td>
  2234. <td><font size="-1">const string &amp;fileName_</font></td>
  2235. <td><font size="-1">Image file name.</font></td>
  2236. </tr>
  2237. <tr>
  2238. <td>
  2239. <center><a name="fileSize"></a> <font size="-1">fileSize</font></center>
  2240. </td>
  2241. <td><font size="-1">off_t</font></td>
  2242. <td><font size="-1">void</font></td>
  2243. <td bgcolor="#666666"><font size="-1"> </font></td>
  2244. <td><font size="-1">Number of bytes of the image on disk</font></td>
  2245. </tr>
  2246. <tr>
  2247. <td>
  2248. <center><a name="fillColor"></a> <font size="-1">fillColor</font></center>
  2249. </td>
  2250. <td><font size="-1">Color</font></td>
  2251. <td><font size="-1">void</font></td>
  2252. <td><font size="-1">const Color &amp;fillColor_</font></td>
  2253. <td><font size="-1">Color to use when filling drawn objects</font></td>
  2254. </tr>
  2255. <tr>
  2256. <td>
  2257. <center><a name="fillPattern"></a> <font size="-1">fillPattern</font></center>
  2258. </td>
  2259. <td><font size="-1">Image</font></td>
  2260. <td><font size="-1">void</font></td>
  2261. <td><font size="-1">const Image &amp;fillPattern_</font></td>
  2262. <td><font size="-1">Pattern image to use when filling drawn
  2263. objects.</font></td>
  2264. </tr>
  2265. <tr>
  2266. <td>
  2267. <center><a name="fillRule"></a> <font size="-1">fillRule</font></center>
  2268. </td>
  2269. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#FillRule">FillRule</a>
  2270. </font></td>
  2271. <td><font size="-1">void</font></td>
  2272. <td><font size="-1">const Magick::FillRule &amp;fillRule_</font></td>
  2273. <td><font size="-1">Rule to use when filling drawn objects.</font></td>
  2274. </tr>
  2275. <tr>
  2276. <td>
  2277. <center><a name="filterType"></a> <font size="-1">filterType</font></center>
  2278. </td>
  2279. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#FilterTypes">FilterTypes</a>
  2280. </font></td>
  2281. <td><font size="-1">void</font></td>
  2282. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#FilterTypes">FilterTypes</a>
  2283. filterType_</font></td>
  2284. <td><font size="-1">Filter to use when resizing image. The
  2285. reduction filter employed has a significant effect on the time required
  2286. to resize an image and the resulting quality. The default filter is <i>Lanczos</i>
  2287. which has been shown to produce high quality results when reducing most
  2288. images.</font></td>
  2289. </tr>
  2290. <tr>
  2291. <td>
  2292. <center><a name="font"></a> <font size="-1">font</font></center>
  2293. </td>
  2294. <td><font size="-1">string</font></td>
  2295. <td><font size="-1">void</font></td>
  2296. <td><font size="-1">const string &amp;font_</font></td>
  2297. <td><font size="-1">Text rendering font. If the font is a fully
  2298. qualified X server font name, the font is obtained from an X
  2299. server. To use a TrueType font, precede the TrueType filename with an
  2300. @. Otherwise, specify a Postscript font name (e.g.
  2301. "helvetica").</font></td>
  2302. </tr>
  2303. <tr>
  2304. <td>
  2305. <center><a name="fontPointsize"></a> <font size="-1">fontPointsize</font></center>
  2306. </td>
  2307. <td><font size="-1">size_t</font></td>
  2308. <td><font size="-1">void</font></td>
  2309. <td><font size="-1">size_t pointSize_</font></td>
  2310. <td><font size="-1">Text rendering font point size</font></td>
  2311. </tr>
  2312. <tr>
  2313. <td>
  2314. <center><a name="fontTypeMetrics"></a> <font size="-1">fontTypeMetrics</font></center>
  2315. </td>
  2316. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/TypeMetric.html">TypeMetric</a> </font></td>
  2317. <td><font size="-1">const std::string &amp;text_, <a
  2318. href="http://www.imagemagick.org/Magick++/TypeMetric.html"> TypeMetric</a> *metrics</font></td>
  2319. <td bgcolor="#666666"><font size="-1"> </font></td>
  2320. <td><font size="-1">Update metrics with font type metrics using
  2321. specified <i>text</i>, and current <a href="Image++.html#font">font</a> and <a
  2322. href="Image++.html#fontPointsize">fontPointSize</a> settings.</font></td>
  2323. </tr>
  2324. <tr>
  2325. <td>
  2326. <center><a name="format"></a> <font size="-1">format</font></center>
  2327. </td>
  2328. <td><font size="-1">string</font></td>
  2329. <td><font size="-1">void</font></td>
  2330. <td bgcolor="#666666"><font size="-1"> </font></td>
  2331. <td><font size="-1">Long form image format description.</font></td>
  2332. </tr>
  2333. <tr>
  2334. <td>
  2335. <center><a name="gamma"></a> <font size="-1">gamma</font></center>
  2336. </td>
  2337. <td><font size="-1">double (typical range 0.8 to 2.3)</font></td>
  2338. <td><font size="-1">void</font></td>
  2339. <td bgcolor="#666666"><font size="-1"> </font></td>
  2340. <td><font size="-1">Gamma level of the image. The same color
  2341. image displayed on two different workstations may
  2342. look different due to differences in the display monitor.
  2343. Use gamma correction to adjust for this
  2344. color difference.</font></td>
  2345. </tr>
  2346. <tr>
  2347. <td>
  2348. <center><a name="geometry"></a> <font size="-1">geometry</font></center>
  2349. </td>
  2350. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a> </font></td>
  2351. <td><font size="-1">void</font></td>
  2352. <td bgcolor="#666666"><font size="-1"> </font></td>
  2353. <td><font size="-1">Preferred size of the image when encoding.</font></td>
  2354. </tr>
  2355. <tr>
  2356. <td>
  2357. <center><a name="gifDisposeMethod"></a> <font size="-1">gifDispose-</font>
  2358. <br>
  2359. <font size="-1">Method</font></center>
  2360. </td>
  2361. <td><font size="-1">size_t</font> <br>
  2362. <font size="-1">{ 0 = Disposal not specified,</font> <br>
  2363. <font size="-1">1 = Do not dispose of graphic,</font> <br>
  2364. <font size="-1">3 = Overwrite graphic with background color,</font>
  2365. <br>
  2366. <font size="-1">4 = Overwrite graphic with previous graphic. }</font></td>
  2367. <td><font size="-1">void</font></td>
  2368. <td><font size="-1">size_t disposeMethod_</font></td>
  2369. <td><font size="-1">GIF disposal method. This option is used to
  2370. control how successive frames are rendered (how the preceding frame is
  2371. disposed of) when creating a GIF animation.</font></td>
  2372. </tr>
  2373. <tr>
  2374. <td>
  2375. <center><a name="iccColorProfile"></a> <font size="-1">iccColorProfile</font></center>
  2376. </td>
  2377. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a> </font></td>
  2378. <td><font size="-1">void</font></td>
  2379. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a>
  2380. &amp;colorProfile_</font></td>
  2381. <td><font size="-1">ICC color profile. Supplied via a <a
  2382. href="http://www.imagemagick.org/Magick++/Blob.html"> Blob</a> since Magick++/ and ImageMagick do not
  2383. currently support formating this data structure directly.
  2384. Specifications are available from the <a href="http://www.color.org/">
  2385. International Color Consortium</a> for the format of ICC color profiles.</font></td>
  2386. </tr>
  2387. <tr>
  2388. <td>
  2389. <center><a name="interlaceType"></a> <font size="-1">interlace-</font>
  2390. <br>
  2391. <font size="-1">Type</font></center>
  2392. </td>
  2393. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#InterlaceType">InterlaceType</a>
  2394. </font></td>
  2395. <td><font size="-1">void</font></td>
  2396. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#InterlaceType">InterlaceType</a>
  2397. interlace_</font></td>
  2398. <td><font size="-1">The type of interlacing scheme (default <i>NoInterlace</i>
  2399. ). This option is used to specify the type of interlacing
  2400. scheme for raw image formats such as RGB or YUV. <i>NoInterlace</i>
  2401. means do not interlace, <i>LineInterlace</i> uses scanline
  2402. interlacing, and <i>PlaneInterlace</i> uses plane interlacing. <i>
  2403. PartitionInterlace</i> is like <i>PlaneInterlace</i> except the
  2404. different planes are saved to individual files (e.g.
  2405. image.R, image.G, and image.B). Use <i>LineInterlace</i> or <i>
  2406. PlaneInterlace</i> to create an interlaced GIF or progressive JPEG
  2407. image.</font></td>
  2408. </tr>
  2409. <tr>
  2410. <td>
  2411. <center><a name="iptcProfile"></a> <font size="-1">iptcProfile</font></center>
  2412. </td>
  2413. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a> </font></td>
  2414. <td><font size="-1">void</font></td>
  2415. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Blob.html">Blob</a> &amp;
  2416. iptcProfile_</font></td>
  2417. <td><font size="-1">IPTC profile. Supplied via a <a
  2418. href="http://www.imagemagick.org/Magick++/Blob.html"> Blob</a> since Magick++ and ImageMagick do not
  2419. currently support formating this data structure directly.
  2420. Specifications are available from the <a href="http://www.iptc.org/">
  2421. International Press Telecommunications Council</a> for IPTC profiles.</font></td>
  2422. </tr>
  2423. <tr>
  2424. <td>
  2425. <center><a name="label"></a> <font size="-1">label</font></center>
  2426. </td>
  2427. <td><font size="-1">string</font></td>
  2428. <td><font size="-1">void</font></td>
  2429. <td><font size="-1">const string &amp;label_</font></td>
  2430. <td><font size="-1">Image label</font></td>
  2431. </tr>
  2432. <tr>
  2433. <td>
  2434. <center><a name="magick"></a> <font size="-1">magick</font></center>
  2435. </td>
  2436. <td><font size="-1">string</font></td>
  2437. <td><font size="-1">void</font></td>
  2438. <td><font size="-1"> const string &amp;magick_</font></td>
  2439. <td><font size="-1">Get image format (e.g. "GIF")</font></td>
  2440. </tr>
  2441. <tr>
  2442. <td>
  2443. <center><a name="matte"></a> <font size="-1">matte</font></center>
  2444. </td>
  2445. <td><font size="-1">bool</font></td>
  2446. <td><font size="-1">void</font></td>
  2447. <td><font size="-1">bool matteFlag_</font></td>
  2448. <td><font size="-1">True if the image has transparency. If set
  2449. True, store matte channel if the image has one otherwise create
  2450. an opaque one.</font></td>
  2451. </tr>
  2452. <tr>
  2453. <td>
  2454. <center><a name="matteColor"></a> <font size="-1">matteColor</font></center>
  2455. </td>
  2456. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Color.html">Color</a> </font></td>
  2457. <td><font size="-1">void</font></td>
  2458. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Color.html">Color</a>
  2459. &amp;matteColor_</font></td>
  2460. <td><font size="-1">Image matte (frame) color</font></td>
  2461. </tr>
  2462. <tr>
  2463. <td>
  2464. <center><a name="meanErrorPerPixel"></a> <font size="-1">meanError-</font>
  2465. <br>
  2466. <font size="-1">PerPixel</font></center>
  2467. </td>
  2468. <td><font size="-1">double</font></td>
  2469. <td><font size="-1">void</font></td>
  2470. <td bgcolor="#666666"><font size="-1"> </font></td>
  2471. <td><font size="-1">The mean error per pixel computed when an
  2472. image is color reduced. This parameter is only valid if verbose is set
  2473. to true and the image has just been quantized.</font></td>
  2474. </tr>
  2475. <tr>
  2476. <td style="text-align: center; vertical-align: middle;"><font
  2477. size="-1"><a name="modulusDepth"></a>modulusDepth<br>
  2478. </font></td>
  2479. <td style="text-align: left; vertical-align: middle;"><small>size_t
  2480. <br>
  2481. </small></td>
  2482. <td style="text-align: left; vertical-align: middle;"><small><font
  2483. size="-1"><small>void<br>
  2484. </small></font></small></td>
  2485. <td style="text-align: left; vertical-align: middle;"><small>size_t
  2486. depth_<br>
  2487. </small></td>
  2488. <td style="text-align: left; vertical-align: middle;"><small>Image
  2489. modulus depth (minimum number of bits required to support
  2490. red/green/blue components without loss of accuracy). The pixel modulus
  2491. depth may be decreased by supplying a value which is less than the
  2492. current value, updating the pixels (reducing accuracy) to the new
  2493. depth.
  2494. The pixel modulus depth can not be increased over the current value
  2495. using this method.<br>
  2496. </small></td>
  2497. </tr>
  2498. <tr>
  2499. <td>
  2500. <center><a name="monochrome"></a> <font size="-1">monochrome</font></center>
  2501. </td>
  2502. <td><font size="-1">bool</font></td>
  2503. <td><font size="-1">void</font></td>
  2504. <td><font size="-1">bool flag_</font></td>
  2505. <td><font size="-1">Transform the image to black and white</font></td>
  2506. </tr>
  2507. <tr>
  2508. <td>
  2509. <center><a name="montageGeometry"></a> <font size="-1">montage-</font>
  2510. <br>
  2511. <font size="-1">Geometry</font></center>
  2512. </td>
  2513. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a> </font></td>
  2514. <td><font size="-1">void</font></td>
  2515. <td bgcolor="#666666"><font size="-1"> </font></td>
  2516. <td><font size="-1">Tile size and offset within an image montage.
  2517. Only valid for montage images.</font></td>
  2518. </tr>
  2519. <tr>
  2520. <td>
  2521. <center><a name="normalizedMaxError"></a> <font size="-1">normalized-</font>
  2522. <br>
  2523. <font size="-1">MaxError</font></center>
  2524. </td>
  2525. <td><font size="-1">double</font></td>
  2526. <td><font size="-1">void</font></td>
  2527. <td bgcolor="#666666"><font size="-1"> </font></td>
  2528. <td><font size="-1">The normalized max error per pixel computed
  2529. when an image is color reduced. This parameter is only valid if verbose
  2530. is set to true and the image has just been quantized.</font></td>
  2531. </tr>
  2532. <tr>
  2533. <td>
  2534. <center><a name="normalizedMeanError"></a> <font size="-1">normalized-</font>
  2535. <br>
  2536. <font size="-1">MeanError</font></center>
  2537. </td>
  2538. <td><font size="-1">double</font></td>
  2539. <td><font size="-1">void</font></td>
  2540. <td bgcolor="#666666"><font size="-1"> </font></td>
  2541. <td><font size="-1">The normalized mean error per pixel computed
  2542. when an image is color reduced. This parameter is only valid if verbose
  2543. is set to true and the image has just been quantized.</font></td>
  2544. </tr>
  2545. <tr>
  2546. <td style="text-align: center; vertical-align: middle;"><small><a
  2547. name="orientation"></a>orientation<br>
  2548. </small></td>
  2549. <td style="vertical-align: middle;"><small><a
  2550. href="http://www.imagemagick.org/Magick++/Enumerations.html#OrientationType">OrientationType</a></small></td>
  2551. <td style="vertical-align: top;"><small>void</small><br>
  2552. </td>
  2553. <td style="vertical-align: middle;"><small><a
  2554. href="http://www.imagemagick.org/Magick++/Enumerations.html#OrientationType">OrientationType</a>
  2555. orientation_</small></td>
  2556. <td style="vertical-align: top;"><small>Image orientation.
  2557. Supported by some file formats such as DPX and TIFF. Useful for
  2558. turning the right way up.<br>
  2559. </small></td>
  2560. </tr>
  2561. <tr>
  2562. <td>
  2563. <center><a name="packets"></a> <font size="-1">packets</font></center>
  2564. </td>
  2565. <td><font size="-1">size_t</font></td>
  2566. <td><font size="-1">void</font></td>
  2567. <td bgcolor="#666666"><font size="-1"> </font></td>
  2568. <td><font size="-1">The number of runlength-encoded packets in</font>
  2569. <br>
  2570. <font size="-1">the image</font></td>
  2571. </tr>
  2572. <tr>
  2573. <td>
  2574. <center><a name="packetSize"></a> <font size="-1">packetSize</font></center>
  2575. </td>
  2576. <td><font size="-1">size_t</font></td>
  2577. <td><font size="-1">void</font></td>
  2578. <td bgcolor="#666666"><font size="-1"> </font></td>
  2579. <td><font size="-1">The number of bytes in each pixel packet</font></td>
  2580. </tr>
  2581. <tr>
  2582. <td>
  2583. <center><a name="page"></a> <font size="-1">page</font></center>
  2584. </td>
  2585. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Geometry.html#PostscriptPageSize">Geometry</a>
  2586. </font></td>
  2587. <td><font size="-1">void</font></td>
  2588. <td><font size="-1">const <a
  2589. href="http://www.imagemagick.org/Magick++/Geometry.html#PostscriptPageSize"> Geometry</a> &amp;pageSize_</font></td>
  2590. <td><font size="-1">Preferred size and location of an image
  2591. canvas.</font>
  2592. <p><font size="-1">Use this option to specify the dimensions
  2593. and position of the Postscript page in dots per inch or a TEXT page in
  2594. pixels. This option is typically used in concert with <i><a
  2595. href="Image++.html#density"> density</a> </i>.</font> </p>
  2596. <p><font size="-1">Page may also be used to position a GIF
  2597. image (such as for a scene in an animation)</font></p>
  2598. </td>
  2599. </tr>
  2600. <tr>
  2601. <td>
  2602. <center><a name="pixelColor"></a> <font size="-1">pixelColor</font></center>
  2603. </td>
  2604. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Color.html">Color</a> </font></td>
  2605. <td><font size="-1">ssize_t x_, ssize_t y_</font></td>
  2606. <td><font size="-1">ssize_t x_, ssize_t y_, const <a
  2607. href="http://www.imagemagick.org/Magick++/Color.html"> Color</a> &amp;color_</font></td>
  2608. <td><font size="-1">Get/set pixel color at location x &amp; y.</font></td>
  2609. </tr>
  2610. <tr>
  2611. <td valign="top">
  2612. <div align="center"><a name="profile"></a> <small>profile</small><br>
  2613. </div>
  2614. </td>
  2615. <td valign="top"><a href="http://www.imagemagick.org/Magick++/Blob.html"><small> Blob</small><small><br>
  2616. </small></a> </td>
  2617. <td valign="top"><small>const std::string name_</small><small><br>
  2618. </small></td>
  2619. <td valign="top"><small>const std::string name_, const Blob
  2620. &amp;colorProfile_</small><small><br>
  2621. </small></td>
  2622. <td valign="top"><small>Get/set/remove </small><small> a named
  2623. profile</small><small>. Valid names include </small><small>"*",
  2624. "8BIM", "ICM", "IPTC", or a user/format-defined profile name. </small><br>
  2625. </td>
  2626. </tr>
  2627. <tr>
  2628. <td>
  2629. <center><a name="quality"></a> <font size="-1">quality</font></center>
  2630. </td>
  2631. <td><font size="-1">size_t (0 to 100)</font></td>
  2632. <td><font size="-1">void</font></td>
  2633. <td><font size="-1">size_t quality_</font></td>
  2634. <td><font size="-1">JPEG/MIFF/PNG compression level (default 75).</font></td>
  2635. </tr>
  2636. <tr>
  2637. <td>
  2638. <center><a name="quantizeColors"></a> <font size="-1">quantize-</font>
  2639. <br>
  2640. <font size="-1">Colors</font></center>
  2641. </td>
  2642. <td><font size="-1">size_t</font></td>
  2643. <td><font size="-1">void</font></td>
  2644. <td><font size="-1">size_t colors_</font></td>
  2645. <td><font size="-1">Preferred number of colors in the image. The
  2646. actual number of colors in the image may be less than your request, but
  2647. never more. Images with less unique colors than specified with this
  2648. option will have any duplicate or unused colors removed.</font></td>
  2649. </tr>
  2650. <tr>
  2651. <td>
  2652. <center><a name="quantizeColorSpace"></a> <font size="-1">quantize-</font>
  2653. <br>
  2654. <font size="-1">ColorSpace</font></center>
  2655. </td>
  2656. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#ColorspaceType">ColorspaceType</a>
  2657. </font></td>
  2658. <td><font size="-1">void</font></td>
  2659. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#ColorspaceType">ColorspaceType</a>
  2660. colorSpace_</font></td>
  2661. <td><font size="-1">Colorspace to quantize colors in (default
  2662. RGB). Empirical evidence suggests that distances in color spaces such
  2663. as YUV or YIQ correspond to perceptual color differences more closely
  2664. than do distances in RGB space. These color spaces may give better
  2665. results when color reducing an image.</font></td>
  2666. </tr>
  2667. <tr>
  2668. <td>
  2669. <center><a name="quantizeDither"></a> <font size="-1">quantize-</font>
  2670. <br>
  2671. <font size="-1">Dither</font></center>
  2672. </td>
  2673. <td><font size="-1">bool</font></td>
  2674. <td><font size="-1">void</font></td>
  2675. <td><font size="-1">bool flag_</font></td>
  2676. <td><font size="-1">Apply Floyd/Steinberg error diffusion to the
  2677. image. The basic strategy of dithering is to trade
  2678. intensity
  2679. resolution for spatial resolution by
  2680. averaging the intensities of several
  2681. neighboring pixels. Images which suffer from
  2682. severe contouring when reducing colors can be
  2683. improved with this option. The quantizeColors or monochrome option must
  2684. be set for this option to take effect.</font></td>
  2685. </tr>
  2686. <tr>
  2687. <td>
  2688. <center><a name="quantizeTreeDepth"></a> <font size="-1">quantize-</font>
  2689. <br>
  2690. <font size="-1">TreeDepth</font></center>
  2691. </td>
  2692. <td><font size="-1">size_t </font></td>
  2693. <td><font size="-1">void</font></td>
  2694. <td><font size="-1">size_t treeDepth_</font></td>
  2695. <td><font size="-1">Depth of the quantization color
  2696. classification tree. Values of 0 or 1 allow selection of the optimal
  2697. tree depth for the color reduction algorithm. Values between 2 and 8
  2698. may be used to manually adjust the tree depth.</font></td>
  2699. </tr>
  2700. <tr>
  2701. <td>
  2702. <center><a name="renderingIntent"></a> <font size="-1">rendering-</font>
  2703. <br>
  2704. <font size="-1">Intent</font></center>
  2705. </td>
  2706. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#RenderingIntent">RenderingIntent</a>
  2707. </font></td>
  2708. <td><font size="-1">void</font></td>
  2709. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#RenderingIntent">RenderingIntent</a>
  2710. render_</font></td>
  2711. <td><font size="-1">The type of rendering intent</font></td>
  2712. </tr>
  2713. <tr>
  2714. <td>
  2715. <center><a name="resolutionUnits"></a> <font size="-1">resolution-</font>
  2716. <br>
  2717. <font size="-1">Units</font></center>
  2718. </td>
  2719. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#ResolutionType">ResolutionType</a>
  2720. </font></td>
  2721. <td><font size="-1">void</font></td>
  2722. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#ResolutionType">ResolutionType</a>
  2723. units_</font></td>
  2724. <td><font size="-1">Units of image resolution</font></td>
  2725. </tr>
  2726. <tr>
  2727. <td>
  2728. <center><a name="rows"></a> <font size="-1">rows</font></center>
  2729. </td>
  2730. <td><font size="-1">size_t</font></td>
  2731. <td><font size="-1">void</font></td>
  2732. <td bgcolor="#666666"><font size="-1"> </font></td>
  2733. <td><font size="-1">The number of pixel rows in the image</font></td>
  2734. </tr>
  2735. <tr>
  2736. <td>
  2737. <center><a name="scene"></a> <font size="-1">scene</font></center>
  2738. </td>
  2739. <td><font size="-1">size_t</font></td>
  2740. <td><font size="-1">void</font></td>
  2741. <td><font size="-1">size_t scene_</font></td>
  2742. <td><font size="-1">Image scene number</font></td>
  2743. </tr>
  2744. <tr>
  2745. <td>
  2746. <center><a name="signature"></a> <font size="-1">signature</font></center>
  2747. </td>
  2748. <td><font size="-1">string</font></td>
  2749. <td><font size="-1">bool force_ = false</font></td>
  2750. <td bgcolor="#666666"><font size="-1"> </font></td>
  2751. <td><font size="-1">Image MD5 signature. Set force_ to 'true' to
  2752. force re-computation of signature.</font></td>
  2753. </tr>
  2754. <tr>
  2755. <td>
  2756. <center><a name="size"></a> <font size="-1">size</font></center>
  2757. </td>
  2758. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a> </font></td>
  2759. <td><font size="-1">void</font></td>
  2760. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html">Geometry</a>
  2761. &amp;geometry_</font></td>
  2762. <td><font size="-1">Width and height of a raw image (an image
  2763. which does not support width and height information). Size may
  2764. also be used to affect the image size read from a multi-resolution
  2765. format (e.g. Photo CD, JBIG, or JPEG.</font></td>
  2766. </tr>
  2767. <tr>
  2768. <td style="text-align: center;">
  2769. <center><a name="strip"></a> <font size="-1">strip</font></center>
  2770. </td>
  2771. <td><font size="-1">void</font></td>
  2772. <td><font size="-1">strips an image of all profiles and comments.</font></td>
  2773. </tr>
  2774. <tr>
  2775. <td>
  2776. <center><a name="strokeAntiAlias"></a> <font size="-1">strokeAntiAlias</font></center>
  2777. </td>
  2778. <td><font size="-1">bool</font></td>
  2779. <td><font size="-1">void</font></td>
  2780. <td><font size="-1">bool flag_</font></td>
  2781. <td><font size="-1">Enable or disable anti-aliasing when drawing
  2782. object outlines.</font></td>
  2783. </tr>
  2784. <tr>
  2785. <td>
  2786. <center><a name="strokeColor"></a> <font size="-1">strokeColor</font></center>
  2787. </td>
  2788. <td><font size="-1">Color</font></td>
  2789. <td><font size="-1">void</font></td>
  2790. <td><font size="-1">const Color &amp;strokeColor_</font></td>
  2791. <td><font size="-1">Color to use when drawing object outlines</font></td>
  2792. </tr>
  2793. <tr>
  2794. <td>
  2795. <center><a name="strokeDashOffset"></a> <font size="-1">strokeDashOffset</font></center>
  2796. </td>
  2797. <td><font size="-1">size_t</font></td>
  2798. <td><font size="-1">void</font></td>
  2799. <td><font size="-1">double strokeDashOffset_</font></td>
  2800. <td><font size="-1">While drawing using a dash pattern, specify
  2801. distance into the dash pattern to start the dash (default 0).</font></td>
  2802. </tr>
  2803. <tr>
  2804. <td>
  2805. <center><a name="strokeDashArray"></a> <font size="-1">strokeDashArray</font></center>
  2806. </td>
  2807. <td><font size="-1">const double*</font></td>
  2808. <td><font size="-1">void</font></td>
  2809. <td><font size="-1">const double* strokeDashArray_</font></td>
  2810. <td><font size="-1">Specify the pattern of dashes and gaps used
  2811. to stroke paths. The strokeDashArray represents a zero-terminated
  2812. array of numbers that specify the lengths (in pixels) of alternating
  2813. dashes and gaps in user units. If an odd number of values is provided,
  2814. then the list of values is repeated to yield an even number of
  2815. values. A typical strokeDashArray_ array might contain the
  2816. members 5 3 2 0, where the zero value indicates the end of the pattern
  2817. array.</font></td>
  2818. </tr>
  2819. <tr>
  2820. <td>
  2821. <center><a name="strokeLineCap"></a> <font size="-1">strokeLineCap</font></center>
  2822. </td>
  2823. <td><font size="-1">LineCap</font></td>
  2824. <td><font size="-1">void</font></td>
  2825. <td><font size="-1">LineCap lineCap_</font></td>
  2826. <td><font size="-1">Specify the shape to be used at the corners
  2827. of paths (or other vector shapes) when they are stroked. Values of
  2828. LineJoin are UndefinedJoin, MiterJoin, RoundJoin, and BevelJoin.</font></td>
  2829. </tr>
  2830. <tr>
  2831. <td>
  2832. <center><a name="strokeLineJoin"></a> <font size="-1">strokeLineJoin</font></center>
  2833. </td>
  2834. <td><font size="-1">LineJoin</font></td>
  2835. <td><font size="-1">void</font></td>
  2836. <td><font size="-1">LineJoin lineJoin_</font></td>
  2837. <td><font size="-1">Specify the shape to be used at the corners
  2838. of paths (or other vector shapes) when they are stroked. Values of
  2839. LineJoin are UndefinedJoin, MiterJoin, RoundJoin, and BevelJoin.</font></td>
  2840. </tr>
  2841. <tr>
  2842. <td>
  2843. <center><a name="strokeMiterLimit"></a> <font size="-1">strokeMiterLimit</font></center>
  2844. </td>
  2845. <td><font size="-1">size_t</font></td>
  2846. <td><font size="-1">void</font></td>
  2847. <td><font size="-1">size_t miterLimit_</font></td>
  2848. <td><font size="-1">Specify miter limit. When two line segments
  2849. meet at a sharp angle and miter joins have been specified for
  2850. 'lineJoin', it is possible for the miter to extend far beyond the
  2851. thickness of the line stroking the path. The miterLimit' imposes a
  2852. limit on the ratio of the miter length to the 'lineWidth'. The default
  2853. value of this parameter is 4.</font></td>
  2854. </tr>
  2855. <tr>
  2856. <td>
  2857. <center><a name="strokeWidth"></a> <font size="-1">strokeWidth</font></center>
  2858. </td>
  2859. <td><font size="-1">double</font></td>
  2860. <td><font size="-1">void</font></td>
  2861. <td><font size="-1">double strokeWidth_</font></td>
  2862. <td><font size="-1">Stroke width for use when drawing vector
  2863. objects (default one)</font></td>
  2864. </tr>
  2865. <tr>
  2866. <td>
  2867. <center><a name="strokePattern"></a> <font size="-1">strokePattern</font></center>
  2868. </td>
  2869. <td><font size="-1">Image</font></td>
  2870. <td><font size="-1">void</font></td>
  2871. <td><font size="-1">const Image &amp;strokePattern_</font></td>
  2872. <td><font size="-1">Pattern image to use while drawing object
  2873. stroke (outlines).</font></td>
  2874. </tr>
  2875. <tr>
  2876. <td>
  2877. <center><a name="subImage"></a> <font size="-1">subImage</font></center>
  2878. </td>
  2879. <td><font size="-1">size_t</font></td>
  2880. <td><font size="-1">void</font></td>
  2881. <td><font size="-1">size_t subImage_</font></td>
  2882. <td><font size="-1">Subimage of an image sequence</font></td>
  2883. </tr>
  2884. <tr>
  2885. <td>
  2886. <center><a name="subRange"></a> <font size="-1">subRange</font></center>
  2887. </td>
  2888. <td><font size="-1">size_t</font></td>
  2889. <td><font size="-1">void</font></td>
  2890. <td><font size="-1">size_t subRange_</font></td>
  2891. <td><font size="-1">Number of images relative to the base image</font></td>
  2892. </tr>
  2893. <tr>
  2894. <td valign="middle">
  2895. <div align="center"><a name="textEncoding"></a> <small>textEncoding</small><br>
  2896. </div>
  2897. </td>
  2898. <td valign="middle"><small>string</small><small><br>
  2899. </small></td>
  2900. <td valign="middle"><small>void</small><small><br>
  2901. </small></td>
  2902. <td valign="middle"><small>const std::string &amp;encoding_</small><small><br>
  2903. </small></td>
  2904. <td valign="top"><small>Specify the code set to use for text
  2905. annotations. The only character encoding which may be specified at
  2906. this time is "UTF-8" for representing </small><small><a
  2907. href="http://www.unicode.org/"> Unicode </a> </small><small>as a
  2908. sequence of bytes. Specify an empty string to use the default ASCII
  2909. encoding. Successful text annotation using Unicode may require fonts
  2910. designed to support Unicode.</small><br>
  2911. </td>
  2912. </tr>
  2913. <tr>
  2914. <td>
  2915. <center><a name="tileName"></a> <font size="-1">tileName</font></center>
  2916. </td>
  2917. <td><font size="-1">string</font></td>
  2918. <td><font size="-1">void</font></td>
  2919. <td><font size="-1">const string &amp;tileName_</font></td>
  2920. <td><font size="-1">Tile name</font></td>
  2921. </tr>
  2922. <tr>
  2923. <td>
  2924. <center><a name="totalColors"></a> <font size="-1">totalColors</font></center>
  2925. </td>
  2926. <td><font size="-1">size_t</font></td>
  2927. <td><font size="-1">void</font></td>
  2928. <td bgcolor="#666666"><font size="-1"> </font></td>
  2929. <td><font size="-1">Number of colors in the image</font></td>
  2930. </tr>
  2931. <tr>
  2932. <td>
  2933. <center><a name="type"></a> <font size="-1">type</font></center>
  2934. </td>
  2935. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#ImageType">ImageType</a>
  2936. </font></td>
  2937. <td><font size="-1">void</font></td>
  2938. <td bgcolor="#ffffff"><font size="-1"><a
  2939. href="http://www.imagemagick.org/Magick++/Enumerations.html#ImageType"> ImageType</a> </font></td>
  2940. <td><font size="-1">Image type.</font></td>
  2941. </tr>
  2942. <tr>
  2943. <td>
  2944. <center><a name="verbose"></a> <font size="-1">verbose</font></center>
  2945. </td>
  2946. <td><font size="-1">bool</font></td>
  2947. <td><font size="-1">void</font></td>
  2948. <td><font size="-1">bool verboseFlag_</font></td>
  2949. <td><font size="-1">Print detailed information about the image</font></td>
  2950. </tr>
  2951. <tr>
  2952. <td>
  2953. <center><a name="view"></a> <font size="-1">view</font></center>
  2954. </td>
  2955. <td><font size="-1">string</font></td>
  2956. <td><font size="-1">void</font></td>
  2957. <td><font size="-1">const string &amp;view_</font></td>
  2958. <td><font size="-1">FlashPix viewing parameters.</font></td>
  2959. </tr>
  2960. <tr>
  2961. <td>
  2962. <center><a name="virtualPixelMethod"></a> <font size="-1">virtualPixelMethod</font></center>
  2963. </td>
  2964. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#VirtualPixelMethod">VirtualPixelMethod</a>
  2965. </font></td>
  2966. <td><small><font size="-1"><small>void</small></font></small></td>
  2967. <td><small><font size="-1"><small><a
  2968. href="http://www.imagemagick.org/Magick++/Enumerations.html#VirtualPixelMethod">VirtualPixelMethod</a>
  2969. virtualPixelMethod_</small></font></small></td>
  2970. <td><font size="-1">Image virtual pixel method.</font></td>
  2971. </tr>
  2972. <tr>
  2973. <td>
  2974. <center><a name="x11Display"></a> <font size="-1">x11Display</font></center>
  2975. </td>
  2976. <td><font size="-1">string (e.g. "hostname:0.0")</font></td>
  2977. <td><font size="-1">void</font></td>
  2978. <td><font size="-1">const string &amp;display_</font></td>
  2979. <td><font size="-1">X11 display to display to, obtain fonts from,
  2980. or to capture image from</font></td>
  2981. </tr>
  2982. <tr>
  2983. <td>
  2984. <center><a name="xResolution"></a> <font size="-1">xResolution</font></center>
  2985. </td>
  2986. <td><font size="-1">double</font></td>
  2987. <td><font size="-1">void</font></td>
  2988. <td bgcolor="#666666"><font size="-1"> </font></td>
  2989. <td><font size="-1">x resolution of the image</font></td>
  2990. </tr>
  2991. <tr>
  2992. <td>
  2993. <center><a name="yResolution"></a> <font size="-1">yResolution</font></center>
  2994. </td>
  2995. <td><font size="-1">double</font></td>
  2996. <td><font size="-1">void</font></td>
  2997. <td bgcolor="#666666"><font size="-1"> </font></td>
  2998. <td><font size="-1">y resolution of the image</font></td>
  2999. </tr>
  3000. </tbody>
  3001. </table></ul>
  3002. </div>
  3003. <h2> <a name="Raw Image Pixel Access"></a> Low-Level Image Pixel Access</h2>
  3004. <div class="doc-section">
  3005. Image pixels (of type <i><a href="http://www.imagemagick.org/Magick++/PixelPacket.html">PixelPacket</a> </i>)
  3006. may be accessed directly via the <i>Image Pixel Cache</i> . The
  3007. image pixel cache is a rectangular window into the actual image pixels
  3008. (which may be in memory, memory-mapped from a disk file, or entirely on
  3009. disk). Two interfaces exist to access the <i>Image Pixel Cache.</i>
  3010. The
  3011. interface described here (part of the <i>Image</i> class) supports
  3012. only
  3013. one view at a time. See the <i><a href="http://www.imagemagick.org/Magick++/Pixels.html">Pixels</a> </i>
  3014. class for a more abstract interface which supports simultaneous pixel
  3015. views (up to the number of rows). As an analogy, the interface
  3016. described
  3017. here relates to the <i><a href="http://www.imagemagick.org/Magick++/Pixels.html">Pixels</a> </i> class as
  3018. stdio's gets() relates to fgets(). The <i><a href="http://www.imagemagick.org/Magick++/Pixels.html"> Pixels</a>
  3019. </i>class provides the more general form of the interface.
  3020. <p>Obtain existing image pixels via <i>getPixels()</i>. Create a new
  3021. pixel region using <i>setPixels().</i></p>
  3022. <p>In order to ensure that only the current generation of the image is
  3023. modified, the Image's <a href="Image++.html#modifyImage">modifyImage()</a> method
  3024. should be invoked to reduce the reference count on the underlying image
  3025. to one. If this is not done, then it is possible for a previous
  3026. generation of the image to be modified due to the use of reference
  3027. counting when copying or constructing an Image.<br>
  3028. </p>
  3029. <p>Depending on the capabilities of the operating system, and the
  3030. relationship of the window to the image, the pixel cache may be a copy
  3031. of the pixels in the selected window, or it may be the actual image
  3032. pixels. In any case calling <i>syncPixels()</i> insures that the base
  3033. image is updated with the contents of the modified pixel cache. The
  3034. method <i> readPixels()</i> supports copying foreign pixel data
  3035. formats
  3036. into the pixel cache according to the <i>QuantumTypes</i>. The method <i>writePixels()</i>
  3037. supports copying the pixels in the cache to a foreign pixel
  3038. representation according to the format specified by <i>QuantumTypes</i>.</p>
  3039. <p>The pixel region is effectively a small image in which the pixels
  3040. may be accessed, addressed, and updated, as shown in the following
  3041. example:
  3042. <pre class="code">
  3043. <p><img class="icon" src="../../api/Cache.png" name="Graphic1" width="254" border="0" /></p>
  3044. Image image("cow.png");
  3045. // Ensure that there are no other references to this image.
  3046. image.modifyImage();
  3047. // Set the image type to TrueColor DirectClass representation.
  3048. image.type(TrueColorType);
  3049. // Request pixel region with size 60x40, and top origin at 20x30
  3050. ssize_t columns = 60;
  3051. PixelPacket *pixel_cache = image.getPixels(20,30,columns,40);
  3052. // Set pixel at column 5, and row 10 in the pixel cache to red.
  3053. ssize_t column = 5;
  3054. ssize_t row = 10;
  3055. PixelPacket *pixel = pixel_cache+row*columns+column;
  3056. *pixel = Color("red");
  3057. // Save changes to underlying image .
  3058. image.syncPixels();
  3059. // Save updated image to file.
  3060. image.write("horse.png");
  3061. </pre>
  3062. </p>
  3063. <p>The image cache supports the following methods: <br>
  3064. <ul><table border="1" width="100%">
  3065. <caption>Image Cache Methods</caption> <tbody>
  3066. <tr>
  3067. <td>
  3068. <center><b>Method</b></center>
  3069. </td>
  3070. <td>
  3071. <center><b>Returns</b></center>
  3072. </td>
  3073. <td>
  3074. <center><b>Signature</b></center>
  3075. </td>
  3076. <td>
  3077. <center><b>Description</b></center>
  3078. </td>
  3079. </tr>
  3080. <tr>
  3081. <td>
  3082. <center><a name="getConstPixels"></a> <font size="-1">getConstPixels</font></center>
  3083. </td>
  3084. <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/PixelPacket.html">PixelPacket</a>
  3085. *</font></td>
  3086. <td><font size="-1">const ssize_t x_, const ssize_t y_, const size_t
  3087. columns_, const size_t rows_</font></td>
  3088. <td><font size="-1">Transfers pixels from the image to the pixel
  3089. cache as defined by the specified rectangular region. </font><font
  3090. size="-1">The returned pointer remains valid until the next getPixel,
  3091. getConstPixels, or setPixels call and should never be deallocated by
  3092. the
  3093. user.</font></td>
  3094. </tr>
  3095. <tr>
  3096. <td>
  3097. <center><a name="getConstIndexes"></a> <font size="-1">getConstIndexes</font></center>
  3098. </td>
  3099. <td><font size="-1">const IndexPacket*</font></td>
  3100. <td><font size="-1">void</font></td>
  3101. <td><font size="-1">Returns a pointer to the Image pixel indexes
  3102. corresponding to a previous </font><font size="-1">getPixel,
  3103. getConstPixels, or setPixels call. </font><font size="-1">The
  3104. returned pointer remains valid until the next getPixel, getConstPixels,
  3105. or setPixels call and should never be deallocated by the user.</font><font
  3106. size="-1"> Only valid for PseudoClass images or CMYKA images. The
  3107. pixel indexes represent an array of type IndexPacket, with each entry
  3108. corresponding to an x,y pixel position. For PseudoClass images, the
  3109. entry's value is the offset into the colormap (see <a href="Image++.html#colorMap">colorMap</a>
  3110. ) for that pixel. For CMYKA images, the indexes are used to contain the
  3111. alpha channel.</font></td>
  3112. </tr>
  3113. <tr>
  3114. <td>
  3115. <center><a name="getIndexes"></a> <font size="-1">getIndexes</font></center>
  3116. </td>
  3117. <td><font size="-1">IndexPacket*</font></td>
  3118. <td><font size="-1">void</font></td>
  3119. <td><font size="-1">Returns a pointer to the Image pixel indexes
  3120. corresponding to the pixel region requested by the last <a
  3121. href="Image++.html#getConstPixels">getConstPixels</a> , <a href="Image++.html#getPixels">getPixels</a>
  3122. , or <a href="Image++.html#setPixels">setPixels</a> call. </font><font
  3123. size="-1">The
  3124. returned pointer remains valid until the next getPixel, getConstPixels,
  3125. or setPixels call and should never be deallocated by the user.</font><font
  3126. size="-1"> </font><font size="-1">Only valid for PseudoClass images
  3127. or
  3128. CMYKA images. The pixel indexes represent an array of type
  3129. IndexPacket, with each entry corresponding to a pixel x,y position. For
  3130. PseudoClass images, the entry's value is the offset into the colormap
  3131. (see <a href="Image++.html#colorMap">colorMap</a> ) for that pixel. For
  3132. CMYKA
  3133. images, the indexes are used to contain the alpha channel.</font></td>
  3134. </tr>
  3135. <tr>
  3136. <td>
  3137. <center><a name="getPixels"></a> <font size="-1">getPixels</font></center>
  3138. </td>
  3139. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/PixelPacket.html">PixelPacket</a> *</font></td>
  3140. <td><font size="-1">const ssize_t x_, const ssize_t y_, const size_t
  3141. columns_, const size_t rows_</font></td>
  3142. <td><font size="-1">Transfers pixels from the image to the pixel
  3143. cache as defined by the specified rectangular region. Modified pixels
  3144. may be subsequently transferred back to the image via syncPixels. </font><font
  3145. size="-1">The returned pointer remains valid until the next getPixel,
  3146. getConstPixels, or setPixels call and should never be deallocated by
  3147. the
  3148. user.</font><font size="-1"></font></td>
  3149. </tr>
  3150. <tr>
  3151. <td>
  3152. <center><a name="setPixels"></a> <font size="-1">setPixels</font></center>
  3153. </td>
  3154. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/PixelPacket.html">PixelPacket</a> *</font></td>
  3155. <td><font size="-1">const ssize_t x_, const ssize_t y_, const size_t
  3156. columns_, const size_t rows_</font></td>
  3157. <td><font size="-1">Allocates a pixel cache region to store image
  3158. pixels as defined by the region rectangle. This area is
  3159. subsequently transferred from the pixel cache to the image via
  3160. syncPixels. </font><font size="-1">The returned pointer remains
  3161. valid until the next getPixel, getConstPixels, or setPixels call and
  3162. should never be deallocated by the user.</font></td>
  3163. </tr>
  3164. <tr>
  3165. <td>
  3166. <center><a name="syncPixels"></a> <font size="-1">syncPixels</font></center>
  3167. </td>
  3168. <td><font size="-1">void</font></td>
  3169. <td><font size="-1">void</font></td>
  3170. <td><font size="-1">Transfers the image cache pixels to the image.</font></td>
  3171. </tr>
  3172. <tr>
  3173. <td>
  3174. <center><a name="readPixels"></a> <font size="-1">readPixels</font></center>
  3175. </td>
  3176. <td><font size="-1">void</font></td>
  3177. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#QuantumTypes">QuantumTypes</a>
  3178. quantum_, unsigned char *source_,</font></td>
  3179. <td><font size="-1">Transfers one or more pixel components from a
  3180. buffer or file into the image pixel cache of an image. ReadPixels is
  3181. typically used to support image decoders. The region transferred
  3182. corresponds to the region set by a preceding setPixels call.</font></td>
  3183. </tr>
  3184. <tr>
  3185. <td>
  3186. <center><a name="writePixels"></a> <font size="-1">writePixels</font></center>
  3187. </td>
  3188. <td><font size="-1">void</font></td>
  3189. <td><font size="-1"><a href="http://www.imagemagick.org/Magick++/Enumerations.html#QuantumTypes">QuantumTypes</a>
  3190. quantum_, unsigned char *destination_</font></td>
  3191. <td><font size="-1">Transfers one or more pixel components from
  3192. the image pixel cache to a buffer or file. WritePixels is typically
  3193. used to support image encoders. The region transferred corresponds to
  3194. the region set by a preceding getPixels or getConstPixels call.</font></td>
  3195. </tr>
  3196. </tbody>
  3197. </table></ul>
  3198. </p>
  3199. </div>
  3200. </div>
  3201. </div>
  3202. </main><!-- /.container -->
  3203. <footer class="magick-footer">
  3204. <div class="container-fluid">
  3205. <a href="../../www/security-policy.html">Security</a> •
  3206. <a href="../../www/news.html">News</a>
  3207. <a href="Image++.html#"><img class="d-inline" id="wand" alt="And Now a Touch of Magick" width="16" height="16" src="../../../../../../../../../../../images/wand.ico"/></a>
  3208. <a href="../../www/links.html">Related</a> •
  3209. <a href="../../www/sitemap.html">Sitemap</a>
  3210. <br/>
  3211. <a href="../../www/support.html">Sponsor</a> •
  3212. <a href="../../www/cite.html">Cite</a> •
  3213. <a href="http://pgp.mit.edu/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a> •
  3214. <a href="../../www/contact.html">Contact Us</a>
  3215. <br/>
  3216. <a href="https://github.com/imagemagick/imagemagick" target="_blank" rel="noopener" aria-label="GitHub"><svg xmlns="http://www.w3.org/2000/svg" class="navbar-nav-svg" viewBox="0 0 512 499.36" width="2%" height="2%" role="img" focusable="false"><title>GitHub</title><path fill="currentColor" fill-rule="evenodd" d="M256 0C114.64 0 0 114.61 0 256c0 113.09 73.34 209 175.08 242.9 12.8 2.35 17.47-5.56 17.47-12.34 0-6.08-.22-22.18-.35-43.54-71.2 15.49-86.2-34.34-86.2-34.34-11.64-29.57-28.42-37.45-28.42-37.45-23.27-15.84 1.73-15.55 1.73-15.55 25.69 1.81 39.21 26.38 39.21 26.38 22.84 39.12 59.92 27.82 74.5 21.27 2.33-16.54 8.94-27.82 16.25-34.22-56.84-6.43-116.6-28.43-116.6-126.49 0-27.95 10-50.8 26.35-68.69-2.63-6.48-11.42-32.5 2.51-67.75 0 0 21.49-6.88 70.4 26.24a242.65 242.65 0 0 1 128.18 0c48.87-33.13 70.33-26.24 70.33-26.24 14 35.25 5.18 61.27 2.55 67.75 16.41 17.9 26.31 40.75 26.31 68.69 0 98.35-59.85 120-116.88 126.32 9.19 7.9 17.38 23.53 17.38 47.41 0 34.22-.31 61.83-.31 70.23 0 6.85 4.61 14.81 17.6 12.31C438.72 464.97 512 369.08 512 256.02 512 114.62 397.37 0 256 0z"/></svg></a> •
  3217. <a href="https://twitter.com/imagemagick" target="_blank" rel="noopener" aria-label="Twitter"><svg xmlns="http://www.w3.org/2000/svg" class="navbar-nav-svg" viewBox="0 0 512 416.32" width="2%" height="2%" role="img" focusable="false"><title>Twitter</title><path fill="currentColor" d="M160.83 416.32c193.2 0 298.92-160.22 298.92-298.92 0-4.51 0-9-.2-13.52A214 214 0 0 0 512 49.38a212.93 212.93 0 0 1-60.44 16.6 105.7 105.7 0 0 0 46.3-58.19 209 209 0 0 1-66.79 25.37 105.09 105.09 0 0 0-181.73 71.91 116.12 116.12 0 0 0 2.66 24c-87.28-4.3-164.73-46.3-216.56-109.82A105.48 105.48 0 0 0 68 159.6a106.27 106.27 0 0 1-47.53-13.11v1.43a105.28 105.28 0 0 0 84.21 103.06 105.67 105.67 0 0 1-47.33 1.84 105.06 105.06 0 0 0 98.14 72.94A210.72 210.72 0 0 1 25 370.84a202.17 202.17 0 0 1-25-1.43 298.85 298.85 0 0 0 160.83 46.92"/></svg></a>
  3218. <br/>
  3219. <small>© 1999 ImageMagick Studio LLC</small>
  3220. </div>
  3221. </footer>
  3222. <!-- Javascript assets -->
  3223. <script src="../../assets/magick.js" ></script>
  3224. </body>
  3225. </html>