Voting

: min(six, five)?
(Example: nine)

The Note You're Voting On

info at devking dot com
22 years ago
here's a simple function to greyscale an image...

function imagecolorgrey( &$img ) {
for( $i=0; $i<imagecolorstotal( $img ); $i++ ) {
$c = ImageColorsForIndex( $img, $i );
$t = ($c["red"]+$c["green"]+$c["blue"])/3;
imagecolorset( $img, $i, $t, $t, $t );
}
}

<< Back to user notes page

To Top