| 
<?php/*
 command line usage:
 php example2.php corner color radius output
 e.g.
 php example2.php tl 0000FF 10 a.png
 php example2.php bl 00FF00 20 b.png
 */
 include("roundcorner.php");
 
 switch ($argv[1]){
 case "tl":
 $corner = CRoundCorner::CORNER_TL;
 break;
 case "tr":
 $corner = CRoundCorner::CORNER_TR;
 break;
 case "bl":
 $corner = CRoundCorner::CORNER_BL;
 break;
 case "BR":
 $corner = CRoundCorner::CORNER_BR;
 break;
 }
 $test = new CRoundCorner($corner, $argv[2], CRoundCorner::TRANSPARENT, $argv[3]);
 $test->drawFile($argv[4]);
 ?>
 |