downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

imagejpeg> <imageinterlace
Last updated: Fri, 13 Nov 2009

view this page in

imageistruecolor

(PHP 4 >= 4.3.2, PHP 5)

imageistruecolorBir resmin gerçek renkli olup olmadığını bulur

Açıklama

bool imageistruecolor ( resource $resim )

imageistruecolor() işlevi belirtilen resmin bir gerçek renkli resim olup olmadığına bakar.

Değiştirgeler

resim

imagecreatetruecolor() gibi bir resim oluşturma işlevinden dönen bir resim verisi.

Dönen Değerler

resim gerçek renkli ise TRUE aksi takdirde FALSE döner.

Örnekler

Örnek 1 - imageistruecolor() ile resmin gerçek renkli olup olmadığının saptanması

<?php
// $im bir resim tanıtıcısı olsun

// Bakalım resim gerçek renkli miymiş?
if(!imageistruecolor($im))
{
    
// Değilse gerçek renkli yeni bir taslak oluşturalım
    
$tc imagecreatetruecolor(imagesx($im), imagesy($im));

    
imagecopy($tc$im0000imagesx($im), imagesy($im));
    
imagedestroy($im);

    
$im $tc;
    
$tc NULL;
}

// Resim taslağıyla çalışmaya devam
?>

Notlar

Bilginize: Bu işlev GD'nin 2.0.1 veya sonraki sürümlerini gerektirir (2.0.28 veya sonraki sürümler önerilir).

Ayrıca Bakınız



add a note add a note User Contributed Notes
imageistruecolor
There are no user contributed notes for this page.

imagejpeg> <imageinterlace
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites