<?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 => 'ru',
  ),
  'this' => 
  array (
    0 => 'imagick.writeimagefile.php',
    1 => 'Imagick::writeImageFile',
    2 => 'Записывает изображение в файл',
  ),
  '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' => 'ru',
    '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">Записывает изображение в файл</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-imagick.writeimagefile-description">
  <h3 class="title">Описание</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">
   Записывает изображение в заданный файловый дескриптор. Дескриптор должен
   быть предварительно открыт, например с помощью fopen. Метод доступен, если модуль Imagick скомпилировали с версией ImageMagick 6.3.6 или старше.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-imagick.writeimagefile-parameters">
  <h3 class="title">Список параметров</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">filehandle</code></dt>
     <dd>
      <p class="para">
       Файловый дескриптор.
      </p>
     </dd>
    
    
     <dt><code class="parameter">format</code></dt>
     <dd>
      <p class="para">
       Формат изображения.
       Список допустимых спецификаторов формата зависит от скомпилированного набора функций программы ImageMagick
       и может быть запрошен во время выполнения с помощью метода <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">Возвращаемые значения</h3>
  <p class="para">
   Функция в случае успешной работы возвращает <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-imagick.writeimagefile-seealso">
  <h3 class="title">Смотрите также</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="imagick.queryformats.php" class="methodname" rel="rdfs-seeAlso">Imagick::queryFormats()</a> - Возвращает форматы, поддерживаемые Imagick</span></li>
  </ul>
 </div>


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