<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.image.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.imageflip.php',
    1 => 'imageflip',
    2 => 'Belirtilen kipi kullanarak g&ouml;r&uuml;nt&uuml;y&uuml; ters &ccedil;evirir',
  ),
  'up' => 
  array (
    0 => 'ref.image.php',
    1 => 'GD ve G&ouml;r&uuml;nt&uuml; İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.imagefilter.php',
    1 => 'imagefilter',
  ),
  'next' => 
  array (
    0 => 'function.imagefontheight.php',
    1 => 'imagefontheight',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'tr',
    'path' => 'reference/image/functions/imageflip.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.imageflip" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">imageflip</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">imageflip</span> &mdash; <span class="dc-title">Belirtilen kipi kullanarak görüntüyü ters çevirir</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.imageflip-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>imageflip</strong></span>(<span class="methodparam"><span class="type"><a href="class.gdimage.php" class="type GdImage">GdImage</a></span> <code class="parameter">$görüntü</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$kip</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Belirtilen <code class="parameter">kip</code>e göre <code class="parameter">görüntü</code>yü
   ters çevirir.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.imageflip-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
<dt><code class="parameter">görüntü</code></dt>
<dd><p class="para"><span class="function"><a href="function.imagecreatetruecolor.php" class="function">imagecreatetruecolor()</a></span> gibi bir görüntü
oluşturma işlevinden dönen bir <span class="classname"><a href="class.gdimage.php" class="classname">GdImage</a></span> nesnesi.
</p></dd>
    
     <dt><code class="parameter">kip</code></dt>
     <dd>
      <p class="para">
       Görüntünün nasıl ters çevrileceği aşağıdaki
       <strong><code>IMG_FLIP_*</code></strong> sabitleri ile belirtilir:
      </p>
      <p class="para">
       <table class="doctable informaltable">
        
         <thead>
          <tr>
           <th>Sabit</th>
           <th>Anlamı</th>
          </tr>

         </thead>

         <tbody class="tbody">
          <tr>
           <td><strong><code><a href="image.constants.php#constant.img-flip-horizontal">IMG_FLIP_HORIZONTAL</a></code></strong></td>
           <td>
            Resim yatay olarak ters  çevrilir.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="image.constants.php#constant.img-flip-vertical">IMG_FLIP_VERTICAL</a></code></strong></td>
           <td>
            Resim dikey olarak ters  çevrilir.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="image.constants.php#constant.img-flip-both">IMG_FLIP_BOTH</a></code></strong></td>
           <td>
            Resim hem dikey hem de yatay olarak ters  çevrilir.
           </td>
          </tr>

         </tbody>
        
       </table>

      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.imageflip-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Başarı durumunda <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, başarısızlık durumunda <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döner.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.imageflip-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Sürüm: </th>
      <th>Açıklama</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.0.0</td>
 <td>
  <code class="parameter">görüntü</code> bağımsız değişkeninde artık
  bir <span class="classname"><a href="class.gdimage.php" class="classname">GdImage</a></span> nesnesi aktarmak gerekiyor; evvelce
  <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> türünde geçerli bir <code class="literal">gd</code> değeri
  gerekirdi.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.imageflip-examples">
  <h3 class="title">Örnekler</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Örnek 1 - Görüntüyü dikey olarak ters çevirmek</strong></p>
    <div class="example-contents"><p>
     Bu örnekte <strong><code><a href="image.constants.php#constant.img-flip-vertical">IMG_FLIP_VERTICAL</a></code></strong> sabiti kullanılmıştır.
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">// Dosya<br /></span><span style="color: #0000BB">$filename </span><span style="color: #007700">= </span><span style="color: #DD0000">'phplogo.png'</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">// İçerik türü<br /></span><span style="color: #0000BB">header</span><span style="color: #007700">(</span><span style="color: #DD0000">'Content-Type: image/png'</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// Yükle<br /></span><span style="color: #0000BB">$im </span><span style="color: #007700">= </span><span style="color: #0000BB">imagecreatefrompng</span><span style="color: #007700">(</span><span style="color: #0000BB">$filename</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// Düşey olarak tersine çevir<br /></span><span style="color: #0000BB">imageflip</span><span style="color: #007700">(</span><span style="color: #0000BB">$im</span><span style="color: #007700">, </span><span style="color: #0000BB">IMG_FLIP_VERTICAL</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// Çıktıla<br /></span><span style="color: #0000BB">imagejpeg</span><span style="color: #007700">(</span><span style="color: #0000BB">$im</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">imagedestroy</span><span style="color: #007700">(</span><span style="color: #0000BB">$im</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>
Yukarıdaki örnek şuna benzer bir çıktı üretir:</p></div>
    <div class="mediaobject">
     
     <div class="imageobject">
      <img src="images/21009b70229598c6a80eef8b45bf282b-imageflipvertical.png" alt="Örnek çıktısı: Düşeyde ters çevrilmiş görüntü" width="120" height="67" />
     </div>
    </div>
   </div>
  </p>
  <p class="para">
   <div class="example" id="example-2">
    <p><strong>Örnek 2 - Görüntüyü yatay olarak ters çevirmek</strong></p>
    <div class="example-contents"><p>
     Bu örnekte <strong><code><a href="image.constants.php#constant.img-flip-horizontal">IMG_FLIP_HORIZONTAL</a></code></strong> sabiti kullanılmıştır.
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">// Dosya<br /></span><span style="color: #0000BB">$filename </span><span style="color: #007700">= </span><span style="color: #DD0000">'phplogo.png'</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">// İçerik türü<br /></span><span style="color: #0000BB">header</span><span style="color: #007700">(</span><span style="color: #DD0000">'Content-Type: image/png'</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// Yükle<br /></span><span style="color: #0000BB">$im </span><span style="color: #007700">= </span><span style="color: #0000BB">imagecreatefrompng</span><span style="color: #007700">(</span><span style="color: #0000BB">$filename</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// Yatayda tersine çevir<br /></span><span style="color: #0000BB">imageflip</span><span style="color: #007700">(</span><span style="color: #0000BB">$im</span><span style="color: #007700">, </span><span style="color: #0000BB">IMG_FLIP_HORIZONTAL</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// Çıktıla<br /></span><span style="color: #0000BB">imagejpeg</span><span style="color: #007700">(</span><span style="color: #0000BB">$im</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">imagedestroy</span><span style="color: #007700">(</span><span style="color: #0000BB">$im</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>
Yukarıdaki örnek şuna benzer bir çıktı üretir:</p></div>
    <div class="mediaobject">
     
     <div class="imageobject">
      <img src="images/21009b70229598c6a80eef8b45bf282b-imagefliphorizontal.png" alt="Örnek çıktısı: Yatayda ters çevrilmiş görüntü" width="120" height="67" />
     </div>
    </div>
   </div>
  </p>
 </div>


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