<?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 => 'en',
  ),
  'this' => 
  array (
    0 => 'imagick.writeimagefile.php',
    1 => 'Imagick::writeImageFile',
    2 => 'Writes an image to a filehandle',
  ),
  'up' => 
  array (
    0 => 'class.imagick.php',
    1 => 'Imagick',
  ),
  'prev' => 
  array (
    0 => 'imagick.writeimage.php',
    1 => 'Imagick::writeImage',
  ),
  'next' => 
  array (
    0 => 'imagick.writeimages.php',
    1 => 'Imagick::writeImages',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/imagick/imagick/writeimagefile.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="imagick.writeimagefile" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Imagick::writeImageFile</h1>
  <p class="verinfo">(PECL imagick 2 &gt;= 2.3.0, PECL imagick 3)</p><p class="refpurpose"><span class="refname">Imagick::writeImageFile</span> &mdash; <span class="dc-title">Writes an image to a filehandle</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-imagick.writeimagefile-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Imagick::writeImageFile</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$filehandle</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$format</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>


  <p class="para rdfs-comment">
   Writes the image sequence to an open filehandle. The handle must be opened with
   for example fopen. This method is available if Imagick has been compiled against ImageMagick version 6.3.6 or newer.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-imagick.writeimagefile-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">filehandle</code></dt>
     <dd>
      <p class="para">
       Filehandle where to write the image.
      </p>
     </dd>
    
    
     <dt><code class="parameter">format</code></dt>
     <dd>
      <p class="para">
       The image format.
       The list of valid format specifiers depends on the compiled feature set of
       ImageMagick, and can be queried at runtime via <span class="methodname"><a href="imagick.queryformats.php" class="methodname">Imagick::queryFormats()</a></span>.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-imagick.writeimagefile-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> on success.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-imagick.writeimagefile-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="imagick.queryformats.php" class="methodname" rel="rdfs-seeAlso">Imagick::queryFormats()</a> - Returns formats supported by Imagick</span></li>
  </ul>
 </div>

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