PageRenderTime 51ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/www/api/composite.html

https://bitbucket.org/wallwizz/imagemagick-6.8.4-for-bb10
HTML | 331 lines | 289 code | 36 blank | 6 comment | 0 complexity | 501dbaf833e14aff6c2edaf24dc22e62 MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  2. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3. <html version="-//W3C//DTD XHTML 1.1//EN"
  4. xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6. xsi:schemaLocation="http://www.w3.org/1999/xhtml
  7. http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd">
  8. <head>
  9. <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
  10. <meta name="google-site-verification" content="MxsMq6bdLOx0KSuz1MY6yG9ZTIJ7_7DVRfl5NCAT5Yg"/>
  11. <title>ImageMagick: MagickCore, C API for ImageMagick: Composite an Image</title>
  12. <meta http-equiv="content-language" content="en-US"/>
  13. <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  14. <meta http-equiv="reply-to" content="magick-users@imagemagick.org"/>
  15. <meta name="application-name" content="ImageMagick"/>
  16. <meta name="description" content="Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats. In addition resize, rotate, shear, distort and transform images automagically."/>
  17. <meta name="application-url" content="http://www.imagemagick.org"/>
  18. <meta name="generator" content="PHP"/>
  19. <meta name="keywords" content="magickcore, c, api, for, imagemagick:, composite, an, image, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject, Image, Processing, Automagically"/>
  20. <meta name="rating" content="GENERAL"/>
  21. <meta name="robots" content="INDEX, FOLLOW"/>
  22. <meta name="generator" content="ImageMagick Studio LLC"/>
  23. <meta name="author" content="ImageMagick Studio LLC"/>
  24. <meta name="revisit-after" content="2 DAYS"/>
  25. <meta name="resource-type" content="document"/>
  26. <meta name="copyright" content="Copyright (c) 1999-2012 ImageMagick Studio LLC"/>
  27. <meta name="distribution" content="Global"/>
  28. <link rel="icon" href="../../images/wand.png"/>
  29. <link rel="shortcut icon" href="../../images/wand.ico" type="images/x-icon"/>
  30. <link rel="canonical" href="http://www.imagemagick.org" />
  31. <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/>
  32. <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
  33. <link rel="stylesheet" type="text/css" href="http://www.imagemagick.org/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
  34. <style type="text/css" media="all">
  35. @import url("../../style/magick.html");
  36. </style>
  37. <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
  38. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
  39. <script type="text/javascript" src="http://www.imagemagick.org/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
  40. <script type="text/javascript">
  41. $(document).ready(function() {
  42. $("a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox({
  43. 'transitionIn' : 'elastic',
  44. 'transitionOut' : 'elastic',
  45. 'overlayShow' : false,
  46. 'opacity' : true
  47. });
  48. });
  49. </script>
  50. </head>
  51. <body id="www-imagemagick-org">
  52. <div class="titlebar">
  53. <div style="margin: 17px auto; float: left;">
  54. <script type="text/javascript">
  55. <!--
  56. google_ad_client = "pub-3129977114552745";
  57. google_ad_slot = "5439289906";
  58. google_ad_width = 728;
  59. google_ad_height = 90;
  60. //-->
  61. </script>
  62. <script type="text/javascript"
  63. src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  64. </script>
  65. </div>
  66. <a href="../../discourse-server">
  67. <img src="../../images/logo.jpg"
  68. alt="ImageMagick Logo"
  69. style="width: 123px; height: 118px; border: 0px; float: right;" /></a>
  70. <a href="http://www.imagemagick.org/ImageMagick-7.0.0/index.html">
  71. <img src="../../images/sprite.jpg"
  72. alt="ImageMagick Sprite"
  73. style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
  74. </div>
  75. <div class="westbar">
  76. <div class="menu">
  77. <a title="About ImageMagick" href="http://www.imagemagick.org/ImageMagick-7.0.0/index.html">About ImageMagick</a>
  78. </div>
  79. <div class="menu">
  80. <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a>
  81. </div>
  82. <div class="sub">
  83. <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a>
  84. </div>
  85. <div class="sub">
  86. <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a>
  87. </div>
  88. <div class="sub">
  89. <a title="Binary Release: iOS" href="../../www/binary-releases.html#iOS">iOS</a>
  90. </div>
  91. <div class="sub">
  92. <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
  93. </div>
  94. <div class="sep"></div>
  95. <div class="menu">
  96. <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
  97. </div>
  98. <div class="sub">
  99. <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
  100. </div>
  101. <div class="sub">
  102. <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
  103. </div>
  104. <div class="sub">
  105. <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
  106. </div>
  107. <div class="menu">
  108. <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
  109. </div>
  110. <div class="sub">
  111. <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
  112. </div>
  113. <div class="sub">
  114. <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
  115. </div>
  116. <div class="sub">
  117. <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
  118. </div>
  119. <div class="sub">
  120. <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a>
  121. </div>
  122. <div class="sep"></div>
  123. <div class="menu">
  124. <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
  125. </div>
  126. <div class="sub">
  127. <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
  128. </div>
  129. <div class="sub">
  130. <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
  131. </div>
  132. <div class="menu">
  133. <a title="Resources" href="../../www/resources.html">Resources</a>
  134. </div>
  135. <div class="menu">
  136. <a title="Architecture" href="../../www/architecture.html">Architecture</a>
  137. </div>
  138. <div class="menu">
  139. <a title="Download" href="../../www/download.html">Download</a>
  140. </div>
  141. <div class="sep"></div>
  142. <div class="menu">
  143. <a title="Search" href="http://www.imagemagick.org/script/search.php">Search</a>
  144. </div>
  145. <div class="sep"></div>
  146. <div class="menu">
  147. <a title="Site Map" href="../../www/sitemap.html">Site Map</a>
  148. </div>
  149. <div class="sub">
  150. <a title="Site Map: Links" href="../../www/links.html">Links</a>
  151. </div>
  152. <div class="sep"></div>
  153. <div class="menu">
  154. <a rel="follow" title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
  155. <a href="http://www.networkredux.com">
  156. <img src="../../images/networkredux.png" width="140" height="31" alt="[sponsor]"
  157. style="margin-top: 4px; margin-left: 4px; border: 0px; float: left;" /></a>
  158. <div class="sponsbox">
  159. <div class="sponsor">
  160. <a rel="follow" title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 2012070100250 ... -->
  161. </div>
  162. <div class="sponsor">
  163. <a rel="follow" title="Sponsor: Stock Photography" href="http://www.fotosearch.com/">Stock Photography</a><!-- 2012040100250 ... -->
  164. </div>
  165. <div class="sponsor">
  166. <a rel="follow" title="Sponsor: Best Local Services" href="http://www.openchime.com">Best Local Services</a><!-- 2012010100150 joey@openc... -->
  167. </div>
  168. <div class="sponsor">
  169. <a rel="follow" title="Sponsor: Managed Server" href="http://www.robhost.de">Managed Server</a><!-- 201210010720 klikics... -->
  170. </div>
  171. <div class="sponsor">
  172. <a rel="follow" title="Sponsor: VPS" href="http://www.interdominios.com/vps">VPS</a><!-- 201201010090 barsh@inter... -->
  173. </div>
  174. <div class="sponsor">
  175. <a rel="follow" title="Sponsor: Autoteile" href="http://www.q11-shop.de">Autoteile</a><!-- 201205010540 suvalj -->
  176. </div>
  177. <div class="sponsor">
  178. <a rel="follow" title="Sponsor: Web Hosting" href="http://www.micfo.com">Web Hosting</a><!-- 209901010090s golestan -->
  179. </div>
  180. <div class="sponsor">
  181. <a rel="follow" title="Sponsor: Web Hosting Deals" href="http://www.webhostingdeals.org">Web Hosting Deals</a><!-- 201111010270 chee.hoa darin -->
  182. </div>
  183. <div class="sponsor">
  184. <a rel="follow" title="Sponsor: Autos part" href="http://www.pkwteile.de/autoteile">Autos part</a><!-- 201112010090s jr@pkwte... -->
  185. </div>
  186. <div class="sponsor">
  187. <a rel="follow" title="Sponsor: Web Hosting Reviews" href="http://www.webhostingsecretrevealed.com">Web Hosting Secret Revealed</a><!-- 201204010540 iamchee jerry -->
  188. </div>
  189. <div class="sponsor">
  190. <a rel="follow" title="Sponsor: Druckerei" href="http://www.allesdruck.de">Druckerei</a><!-- 201303011500 r.leo -->
  191. </div>
  192. <div class="sponsor">
  193. <a rel="follow" title="Sponsor: Hotel München" href="http://www.messehotel-erb-muenchen.de">Hotel München</a><!-- 201111010450 cerb -->
  194. </div>
  195. <div class="sponsor">
  196. <a rel="follow" title="Sponsor: Notebook Reparatur" href="http://www.notebook-reparaturen-berlin.de">Notebook Reparatur</a><!-- 2012020100300 atlas.multimedia-->
  197. </div>
  198. <div class="sponsor">
  199. <a rel="follow" title="Sponsor: Got Stripes?" href="http://www.stripeslawncare.org">Got Stripes?</a><!-- 2012010100150 brooks@stripes...-->
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. <div class="eastbar">
  205. <div class="g-plusone" id="gplusone"></div>
  206. <script type="text/javascript">
  207. window.___gcfg = {
  208. lang: 'en-US'
  209. };
  210. (function() {
  211. var po = document.createElement('offline-script');
  212. po.type = 'text/javascript'; po.async = true;
  213. po.src = 'https://apis.google.com/js/plusone.js';
  214. var script = document.getElementsByTagName('offline-script')[0];
  215. script.parentNode.insertBefore(po, script);
  216. })();
  217. var gplusone = document.getElementById("gplusone");
  218. gplusone.setAttribute("data-size","medium");
  219. gplusone.setAttribute("data-count","false");
  220. </script>
  221. </div>
  222. <div class="main">
  223. <h1>Module composite Methods</h1>
  224. <p class="navigation-index">[<a href="composite.html#CompositeImageChannel">CompositeImageChannel</a> &bull; <a href="composite.html#TextureImage">TextureImage</a>]</p>
  225. <h2><a href="http://www.imagemagick.org/api/MagickCore/composite_8c.html" id="CompositeImageChannel">CompositeImageChannel</a></h2>
  226. <div class="doc-section">
  227. <p>CompositeImageChannel() returns the second image composited onto the first at the specified offset, using the specified composite method.</p>
  228. <p>The format of the CompositeImageChannel method is:</p>
  229. <pre class="code">
  230. MagickBooleanType CompositeImage(Image *image,
  231. const CompositeOperator compose,Image *composite_image,
  232. const ssize_t x_offset,const ssize_t y_offset)
  233. MagickBooleanType CompositeImageChannel(Image *image,
  234. const ChannelType channel,const CompositeOperator compose,
  235. Image *composite_image,const ssize_t x_offset,const ssize_t y_offset)
  236. </pre>
  237. <p>A description of each parameter follows:</p>
  238. <h5>image</h5>
  239. <p>the destination image, modified by he composition</p>
  240. <h5>channel</h5>
  241. <p>the channel.</p>
  242. <h5>compose</h5>
  243. <p>This operator affects how the composite is applied to the image. The operators and how they are utilized are listed here http://www.w3.org/TR/SVG12/#compositing.</p>
  244. <h5>composite_image</h5>
  245. <p>the composite (source) image.</p>
  246. <h5>x_offset</h5>
  247. <p>the column offset of the composited image.</p>
  248. <h5>y_offset</h5>
  249. <p>the row offset of the composited image.</p>
  250. <p>Extra Controls from Image meta-data in 'composite_image' (artifacts)</p>
  251. <p>o "compose:args" A string containing extra numerical arguments for specific compose methods, generally expressed as a 'geometry' or a comma separated list of numbers.</p>
  252. <p>Compose methods needing such arguments include "BlendCompositeOp" and "DisplaceCompositeOp".</p>
  253. <p>o "compose:outside-overlay" Modify how the composition is to effect areas not directly covered by the 'composite_image' at the offset given. Normally this is dependant on the 'compose' method, especially Duff-Porter methods.</p>
  254. <p>If set to "false" then disable all normal handling of pixels not covered by the composite_image. Typically used for repeated tiling of the composite_image by the calling API.</p>
  255. <p>Previous to IM v6.5.3-3 this was called "modify-outside-overlay"</p>
  256. </div>
  257. <h2><a href="http://www.imagemagick.org/api/MagickCore/composite_8c.html" id="TextureImage">TextureImage</a></h2>
  258. <div class="doc-section">
  259. <p>TextureImage() repeatedly tiles the texture image across and down the image canvas.</p>
  260. <p>The format of the TextureImage method is:</p>
  261. <pre class="code">
  262. MagickBooleanType TextureImage(Image *image,const Image *texture)
  263. </pre>
  264. <p>A description of each parameter follows:</p>
  265. <h5>image</h5>
  266. <p>the image.</p>
  267. <h5>texture</h5>
  268. <p>This image is the texture to layer on the background.</p>
  269. </div>
  270. </div>
  271. <div id="linkbar">
  272. <span id="linkbar-west">&nbsp;</span>
  273. <span id="linkbar-center">
  274. <a href="../../discourse-server">Discourse Server</a> &bull;
  275. <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
  276. </span>
  277. <span id="linkbar-east">&nbsp;</span>
  278. </div>
  279. <div class="footer">
  280. <span id="footer-west">&copy; 1999-2011 ImageMagick Studio LLC</span>
  281. <span id="footer-east"> <a href="../../www/contact.html">Contact the Wizards</a></span>
  282. </div>
  283. <div style="clear: both; margin: 0; width: 100%; "></div>
  284. <script type="text/javascript">
  285. var _gaq = _gaq || [];
  286. _gaq.push(['_setAccount', 'UA-17690367-1']);
  287. _gaq.push(['_trackPageview']);
  288. (function() {
  289. var ga = document.createElement('offline-script'); ga.type = 'text/javascript'; ga.async = true;
  290. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  291. var s = document.getElementsByTagName('offline-script')[0]; s.parentNode.insertBefore(ga, s);
  292. })();
  293. </script>
  294. </body>
  295. </html>