PHP Doku:: Finds whether an image is a truecolor image - function.imageistruecolor.html
Aktuelle Suchanfrage: 21009b70229598c6a80eef8b45bf282b-imagejpeg jpg - 11 Treffer
  1 imageistruecolor
Finds whether an image is a truecolor image - function.imageistruecolor.html
  2 imagejpeg
Ausgabe des Bildes im Browser oder als Datei - function.imagejpeg.html
  3 imagelayereffect
Set the alpha blending flag to use the bundled libgd layering effects - function.imagelayereffect.html
  4 imagegif
Ausgabe des Bildes im Browser oder als Datei - function.imagegif.html
  5 imagesetstyle
Set the style for line drawing - function.imagesetstyle.html
  6 imagepng
Ausgabe eines Bildes im Browser oder als Datei im PNG-Format - function.imagepng.html
  7 gd_info
Retrieve information about the currently installed GD library - function.gd-info.html
  8 imagewbmp
Output image to browser or file - function.imagewbmp.html
  9 imagefilter
Applies a filter to an image - function.imagefilter.html
 10 Liste der Ressource-Typen
Liste der Ressource-Typen - resource.html
mehr Ergebnisse anzeigen...

Bisherige Suchanfragen: (1) anzeigen

Verlauf / Chronik / History: (5) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzBildverarbeitung und -generierungBildbearbeitung und GDGD- und Image-Funktionenimageistruecolor

Ein Service von Reinhard Neidl - Webprogrammierung.

GD- und Image-Funktionen

<<imageinterlace

imagejpeg>>

imageistruecolor

(PHP 4 >= 4.3.2, PHP 5)

imageistruecolorFinds whether an image is a truecolor image

Beschreibung

bool imageistruecolor ( resource $image )

imageistruecolor() finds whether the image image is a truecolor image.

Parameter-Liste

image

Eine von den verschiedenen Erzeugungsfunktionen wie imagecreatetruecolor() gelieferte Grafikressource.

Rückgabewerte

Returns TRUE if the image is truecolor, FALSE otherwise.

Beispiele

Beispiel #1 Simple detection of true color image instances using imageistruecolor()

<?php
// $im is an image instance

// Check if image is a true color image or not
if(!imageistruecolor($im))
{
    
// Create a new true color image instance
    
$tc imagecreatetruecolor(imagesx($im), imagesy($im));

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

    
$im $tc;
    
$tc NULL;
}

// Continue working with image instance
?>

Anmerkungen

Hinweis: Diese Funktion setzt die GD-Bibliothek in der Version 2.0.1 oder höher (empfohlen wird mindestens 2.0.28) voraus.

Siehe auch


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)