Location: PHPKode > projects > PHP Cad and Drawing Program > phpcad/functions/movies_icondraw.inc
AAAAAAAAAAAAAAAAAAAAAAAAA
//
//  Puts icon on screen for specific period of time
//
function movies_icondraw($ttime,$totaltime,$icon,$ratio,$imagescale,$scale,$x,$y)
{
    global $time;
    global $image;
    $ntime=$time-$ttime;
    if ($ntime>0 and $ntime<$totaltime) {
        $handscale = $scale/$imagescale*$ratio;
        $icon = getcwd() . "/pictures/$icon";
        $icon = ImageCreateFromJPEG($icon);
        $width = ImageSX($icon);
        $height = ImageSY($icon);
        ImageCopyResampled($image, $icon, $x*$scale, $y*$scale, 0, 0,
        $width*$handscale, $height*$handscale, $width, $height);
    }
}
BBBBBBBBBBBBBBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCCCCCCCCCCC
function movies_icondraw($ttime,$totaltime,$icon,$ratio,$imagescale,$scale,$x,$y) {}
DDDDDDDDDDDDDDDDDDDDDDDD
$inthemenu = "no";
EEEEEEEEEEEEEEEEEEEEEEEEEEEEE
Return current item: PHP Cad and Drawing Program