imagegammacorrect

(PHP 4, PHP 5, PHP 7, PHP 8)

imagegammacorrectWendet eine Gamma-Korrektur auf ein GD-Bild an

Beschreibung

imagegammacorrect ( resource $image , float $inputgamma , float $outputgamma ) : bool

Wendet eine Gamma-Korrektur auf das angegebene image an, wobei Eingangs- und Ausgangsgamma angegeben werden.

Parameter-Liste

image

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

inputgamma

Das Eingangsgamma.

outputgamma

Das Ausgangsgamma.

Rückgabewerte

Gibt bei Erfolg true zurück. Im Fehlerfall wird false zurückgegeben.

Beispiele

Beispiel #1 Die Verwendung von imagegammacorrect()

<?php
// Erzeuge ein Bild
$im imagecreatefromgif('php.gif');

// Korrigiere Gamma, Ausgangsgamma = 1.537
imagegammacorrect($im1.01.537);

// Speichere Bild und gib den Speicher frei
imagegif($im'./php_gamma_corrected.gif');
imagedestroy($im);
?>

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top