note 18524 added to function.imagegammacorrect

From: Date: Sat, 26 Jan 2002 10:46:27 +0000
Subject: note 18524 added to function.imagegammacorrect
Groups: php.notes 
Request: Send a blank email to php-notes+get-25840@lists.php.net to get a copy of this message
Just thought I'd add how I used the gamma correction function (seeing as no-one had done so previously). works great. I used a form which has a parameter $GAMMA, so I usually type in something like 1.6 $image = ImageCreateFromJpeg ( "pictures/".$PICTURE2 ) ; if ($GAMMA != "") { $GammaFloat = (double) $GAMMA ; imagegammacorrect ($image, 1.0, $GammaFloat ) ; // now save the file imagejpeg ( $image, "pictures/"."$PICTURE2", 90 ) ; } -- http://www.php.net/manual/en/function.imagegammacorrect.php http://master.php.net/manage/user-notes.php?action=edit+18524 http://master.php.net/manage/user-notes.php?action=delete+18524 http://master.php.net/manage/user-notes.php?action=reject+18524

« previous php.notes (#25840) next »