Location: PHPKode > projects > PHP Cad and Drawing Program > phpcad/functions/gdtext.inc
AAAAAAAAAAAAAAAAAAAAAAAAA
//
//    GD text is not scalable but works.
//    $size=<u>"1-5"</u> standard GD text sizes
//    Enter <u>any text</u> in the textfeild.
//
function gdtext($image,$size,$txt,$scale,$x,$y) {
    $white=ImageColorAllocate($image,250,251,254);
    $x=$x*$scale;
    $y=$y*$scale;
    Imagestring($image,$size,$x,$y,$txt,$white);
}
BBBBBBBBBBBBBBBBBBBBBBBBBBBB
//function gdtext($image,$size,$txt,$scale,$x,$y){
if ($PObj == "gdtext") {
    $a=fopen("./files/$pfilez","a");
    $xp = "<?php $PObj($" . "image,$PLen,";
    $xp .= '"' . $PTxt . '",';
    $xp .= "$" . "scale," . $xx . "," . $yy . "); ?>\n";
    fwrite($a, $xp);
    fclose($a);
}
CCCCCCCCCCCCCCCCCCCCCCCC
function gdtext($image,$size,$txt,$scale,$x,$y){}
DDDDDDDDDDDDDDDDDDDDDDDD
$inthemenu = "yes";
$dirlist= array("NA");
$lenlist= array("1","2","3","4","5");
$txtitem="Enter Text Here";
EEEEEEEEEEEEEEEEEEEEEEEEEEEEE
Return current item: PHP Cad and Drawing Program