shadeimage( $shade_grayscale, $shade_azimuth, $shade_elevation); } $format = strtolower( $image->getimageformat() ); $path = "temp/$ID.$_SESSION[views].$format"; $frames = $image->getNumberImages(); if ( $frames > 1) { $image->writeImages("$path", TRUE); } else { $image->writeImage("$path"); } # save settings $_SESSION[path] = "$path"; $_SESSION[shade_azimuth] = $shade_azimuth; $_SESSION[shade_elevation] = $shade_elevation; header("location:display.php"); exit; } #### end shade #### include("top.php"); ?>
Azimuth: ">
Elevation: ">
Grayscale: False
True

Description:
Shines a distant light on an image to create a three-dimensional effect. You control the positioning of the light with azimuth and elevation. [Examples]
Parameters
Azimuth
Required. Measured in degrees off the x axis. Must be a number.
Elevation
Required. Measured in pixels above the Z axis. Must be a number.
Grayscale
If true then a grayscale image is returned. If unselected, defaults to false.