Location: PHPKode > projects > PHP Cad and Drawing Program > functions/icondraw.inc
AAAAAAAAAAAAAAAAAAAAAAAAA
//   $icon is the name of the picture like "bluegill.jpg"
//   $ratio is the size of the picture in relation to the image scale say .5
//   $imagescale is the $scale at which picture is developed, usually 10
//   thus, if $imagescale is 10 and $ratio is .5, the picture would be
//   reduced 50 pecent at scale 10.
//
function icondraw($image,$icon,$ratio,$imagescale,$scale,$x,$y)
{
    $handscale = $scale/$imagescale*$ratio;
    //$handscale=1;
    $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 icondraw($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