Letzte Aktualisierung: 31.03.2008 | © 2024 Julian von Mendel | Datenschutz
<?php
/* (C) 2008 by Julian von Mendel (prog@derjulian.net)
* License: LGPL3
* $LastChangedBy: jvm $
* $LastChangedDate: 2008-03-31 17:46:20 +0000 (Mon, 31 Mar 2008) $
* $Revision: 1 $
*/
require_once("image.php");
class image_invert extends imagealgorithmmask {
public function algorithm($x, $y) {
$color = $this->image->getpixel($x, $y, false);
foreach ($color as $key => $val) {
$color[$key] ^= 255;
}
return $color;
}
}
© 2009 Julian von Mendel (http://derjulian.net) | Datum: 27.04.2024