Location: PHPKode > projects > PHP Cad and Drawing Program > functions/icondrawpng.inc
AAAAAAAAAAAAAAAAAAAAAAAAA
//
//  Draw a scalable image
//
function icondrawpng($image,$icon,$ratio,$imagescale,$scale,$x,$y)
{
    $handscale = $scale/$imagescale*$ratio;
    //$handscale=1;
    $icon = getcwd() . "/pictures/$icon";
    $icon = ImageCreateFromPNG($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 icondrawpng($image,$icon,$ratio,$imagescale,$scale,$x,$y) {}
DDDDDDDDDDDDDDDDDDDDDDDD
$inthemenu = "no";
$dirlist= array("NA");
$lenlist= array("NA");
$txtitem="AAAAAA";
EEEEEEEEEEEEEEEEEEEEEEEEEEEEE
Return current item: PHP Cad and Drawing Program