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

search for in the

imagejpeg> <imageinterlace
[edit] Last updated: Fri, 17 May 2013

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 - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites