<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.imagick.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'imagick.textureimage.php',
    1 => 'Imagick::textureImage',
    2 => 'Repeatedly tiles the texture image',
  ),
  'up' => 
  array (
    0 => 'class.imagick.php',
    1 => 'Imagick',
  ),
  'prev' => 
  array (
    0 => 'imagick.swirlimage.php',
    1 => 'Imagick::swirlImage',
  ),
  'next' => 
  array (
    0 => 'imagick.thresholdimage.php',
    1 => 'Imagick::thresholdImage',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/imagick/imagick/textureimage.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="imagick.textureimage" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Imagick::textureImage</h1>
  <p class="verinfo">(PECL imagick 2, PECL imagick 3)</p><p class="refpurpose"><span class="refname">Imagick::textureImage</span> &mdash; <span class="dc-title">Repeatedly tiles the texture image</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-imagick.textureimage-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">

   <span class="methodname"><strong>Imagick::textureImage</strong></span>(<span class="methodparam"><span class="type"><a href="class.imagick.php" class="type Imagick">Imagick</a></span> <code class="parameter">$texture_wand</code></span>): <span class="type"><a href="class.imagick.php" class="type Imagick">Imagick</a></span></div>

  <p class="para rdfs-comment">
   Repeatedly tiles the texture image across and down the image canvas.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-imagick.textureimage-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">texture_wand</code></dt>
     <dd>
      <p class="para">
       Imagick object to use as texture image
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-imagick.textureimage-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Returns a new Imagick object that has the repeated texture applied.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-imagick.textureimage-errors">
  <h3 class="title">Fehler/Exceptions</h3>
  <p class="para">
   Wirft ImagickException bei Fehlern.
  </p>
 </div>




 <div class="refsect1 examples" id="refsect1-imagick.textureimage-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
    <div class="example" id="example-3129">
      <p><strong>Beispiel #1  <span class="function"><strong>Imagick::textureImage()</strong></span></strong></p>
      <div class="example-contents">
      <div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">function </span><span style="color: #0000BB">textureImage</span><span style="color: #007700">(</span><span style="color: #0000BB">$imagePath</span><span style="color: #007700">) {<br />    </span><span style="color: #0000BB">$image </span><span style="color: #007700">= new </span><span style="color: #0000BB">\Imagick</span><span style="color: #007700">();<br />    </span><span style="color: #0000BB">$image</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">newImage</span><span style="color: #007700">(</span><span style="color: #0000BB">640</span><span style="color: #007700">, </span><span style="color: #0000BB">480</span><span style="color: #007700">, new </span><span style="color: #0000BB">\ImagickPixel</span><span style="color: #007700">(</span><span style="color: #DD0000">'pink'</span><span style="color: #007700">));<br />    </span><span style="color: #0000BB">$image</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setImageFormat</span><span style="color: #007700">(</span><span style="color: #DD0000">"jpg"</span><span style="color: #007700">);<br />    </span><span style="color: #0000BB">$texture </span><span style="color: #007700">= new </span><span style="color: #0000BB">\Imagick</span><span style="color: #007700">(</span><span style="color: #0000BB">realpath</span><span style="color: #007700">(</span><span style="color: #0000BB">$imagePath</span><span style="color: #007700">));<br />    </span><span style="color: #0000BB">$texture</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">scaleimage</span><span style="color: #007700">(</span><span style="color: #0000BB">$image</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getimagewidth</span><span style="color: #007700">() / </span><span style="color: #0000BB">4</span><span style="color: #007700">, </span><span style="color: #0000BB">$image</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getimageheight</span><span style="color: #007700">() / </span><span style="color: #0000BB">4</span><span style="color: #007700">);<br />    </span><span style="color: #0000BB">$image </span><span style="color: #007700">= </span><span style="color: #0000BB">$image</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">textureImage</span><span style="color: #007700">(</span><span style="color: #0000BB">$texture</span><span style="color: #007700">);<br />    </span><span style="color: #0000BB">header</span><span style="color: #007700">(</span><span style="color: #DD0000">"Content-Type: image/jpg"</span><span style="color: #007700">);<br />    echo </span><span style="color: #0000BB">$image</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
      </div>

    </div>
  </p>
 </div>


</div><?php manual_footer($setup); ?>