Location: PHPKode > projects > PHP Cad and Drawing Program > functions/ptitle.inc
AAAAAAAAAAAAAAAAAAAAAAAAA
//
//    Use by hand.
//    draws a frame for 640, 480 pictures
//    delete point is 0,0.
//    textbox entry title, author "Camelot Castle&William Jones"
//
//    $title - string for title, "Camelot"
//    $author -  string for author, "William Jones"
//
function ptitle($image, $title, $author, $scale, $x, $y)
{
    $white=ImageColorAllocate($image,250,251,254);
    $black=ImageColorAllocate($image,0,0,0);
    $fontsize=100/$scale;
    ImageFilledrectangle($image,0,450,639,479,$black);
    // Top Edge Line
    Imageline($image,0,0,638,0,$white);
    Imageline($image,0,1,639,1,$white);
    // Left Edge Line
    Imageline($image,0,0,0,479,$white);
    Imageline($image,1,0,1,479,$white);
    // Right Edge Line
    Imageline($image,638,0,638,479,$white);
    Imageline($image,639,0,639,479,$white);
    // Bottom Line
    Imageline($image,0,479,639,479,$white);
    Imageline($image,0,478,639,478,$white);
    // Top Box Line
    Imageline($image,0,450,639,450,$white);
    Imageline($image,0,449,639,449,$white);
    // Left Box Line
    Imageline($image,0,450,0,479,$white);
    Imageline($image,1,450,1,479,$white);
    // Mid-Left Box Line
    Imageline($image,180,450,180,479,$white);
    Imageline($image,181,450,181,479,$white);
    // Mid Box Line
    Imageline($image,350,450,350,479,$white);
    Imageline($image,351,450,351,479,$white);
    // Mid-Right Box Line
    Imageline($image,530,450,530,479,$white);
    Imageline($image,531,450,531,479,$white);
    // Right Box Line
    Imageline($image,638,450,638,479,$white);
    Imageline($image,639,450,639,479,$white);

    $author = "DRAWN BY:  " . $author;
    $subject = "TITLE:  " . $title;
    $dscale = "SCALE:  1 SQ is 1 SQ FT";
    $date_str = getdate();
    $mon = $date_str["mon"];
    $year = $date_str["year"];
    Imagestring($image,2,10,460,$subject,$white);
    Imagestring($image,2,190,460,$dscale,$white);
    Imagestring($image,2,360,460,$author,$white);
    Imagestring($image,2,540,460,"DATE:  $mon-$year",$white);
}

BBBBBBBBBBBBBBBBBBBBBBBBBBBB

CCCCCCCCCCCCCCCCCCCCCCCC
function ptitle($image,$subject,$author,$scale,$x,$y) {}
DDDDDDDDDDDDDDDDDDDDDDDD
$inthemenu = "no";
$dirlist= array("NA");
$lenlist= array("NA");
$txtitem="AAAAAA";
EEEEEEEEEEEEEEEEEEEEEEEEEEEEE
Return current item: PHP Cad and Drawing Program