<?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 => 'zh',
  ),
  'this' => 
  array (
    0 => 'imagick.clone.php',
    1 => 'Imagick::clone',
    2 => 'Makes an exact copy of the Imagick object',
  ),
  'up' => 
  array (
    0 => 'class.imagick.php',
    1 => 'Imagick',
  ),
  'prev' => 
  array (
    0 => 'imagick.clippathimage.php',
    1 => 'Imagick::clipPathImage',
  ),
  'next' => 
  array (
    0 => 'imagick.clutimage.php',
    1 => 'Imagick::clutImage',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/imagick/imagick/clone.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="imagick.clone" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Imagick::clone</h1>
  <p class="verinfo">(PECL imagick 2, PECL imagick 3)</p><p class="refpurpose"><span class="refname">Imagick::clone</span> &mdash; <span class="dc-title">Makes an exact copy of the Imagick object</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-imagick.clone-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Imagick::clone</strong></span>(): <span class="type"><a href="class.imagick.php" class="type Imagick">Imagick</a></span></div>

  <p class="para rdfs-comment">
   Makes an exact copy of the Imagick object.
  </p>
  <div class="warning"><strong class="warning">警告</strong>
   <p class="simpara">
    This function has been <em>DEPRECATED</em> as of imagick 3.1.0
    in favour of using the <a href="language.oop5.cloning.php" class="link">clone</a>
    keyword.
   </p>
  </div>
 </div>


 <div class="refsect1 parameters" id="refsect1-imagick.clone-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-imagick.clone-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   A copy of the Imagick object is returned.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-imagick.clone-changelog">
  <h3 class="title">更新日志</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>版本</th>
       <th>说明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>PECL imagick 3.1.0</td>
       <td>
        The method was deprecated in favour of the
        <a href="language.oop5.cloning.php" class="link">clone</a> keyword.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-imagick.clone-examples">
  <h3 class="title">示例</h3>
  <p class="para">
   <div class="example" id="example-2953">
    <p><strong>示例 #1 Imagick object cloning in different versions of imagick</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: #FF8000">// Cloning an Imagick object in imagick 2.x and 3.0:<br /></span><span style="color: #0000BB">$newImage </span><span style="color: #007700">= </span><span style="color: #0000BB">$image</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">clone</span><span style="color: #007700">();<br /><br /></span><span style="color: #FF8000">// Cloning an Imagick object from 3.1.0 on:<br /></span><span style="color: #0000BB">$newImage </span><span style="color: #007700">= clone </span><span style="color: #0000BB">$image</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

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


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