<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.gmagick.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'gmagick.writeimage.php',
    1 => 'Gmagick::writeimage',
    2 => 'Writes an image to the specified filename',
  ),
  'up' => 
  array (
    0 => 'class.gmagick.php',
    1 => 'Gmagick',
  ),
  'prev' => 
  array (
    0 => 'gmagick.write.php',
    1 => 'Gmagick::write',
  ),
  'next' => 
  array (
    0 => 'class.gmagickdraw.php',
    1 => 'GmagickDraw',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/gmagick/gmagick/writeimage.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="gmagick.writeimage" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Gmagick::writeimage</h1>
  <p class="verinfo">(PECL gmagick &gt;= Unknown)</p><p class="refpurpose"><span class="refname">Gmagick::writeimage</span> &mdash; <span class="dc-title">Writes an image to the specified filename</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-gmagick.writeimage-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>Gmagick::writeimage</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$filename</code></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$all_frames</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></span></span>): <span class="type"><a href="class.gmagick.php" class="type Gmagick">Gmagick</a></span></div>

  <p class="para rdfs-comment">
   Writes an image to the specified filename. If the filename parameter is <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>,
   the image is written to the filename set by <span class="methodname"><a href="gmagick.readimage.php" class="methodname">Gmagick::readimage()</a></span> or <span class="methodname"><a href="gmagick.setimagefilename.php" class="methodname">Gmagick::setimagefilename()</a></span>. 
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-gmagick.writeimage-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">filename</code></dt>
     <dd>
      <p class="para">
       The image filename.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-gmagick.writeimage-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   The <span class="classname"><a href="class.gmagick.php" class="classname">Gmagick</a></span> object.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-gmagick.writeimage-errors">
  <h3 class="title">错误/异常</h3>
  <p class="para">
   错误时抛出
<span class="classname"><strong class="classname">GmagickException</strong></span>。
  </p>
 </div>

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