It's actually a watermark
- //session_start();
- header("Content-type: image/png"); //Declare image
- //$image = imagecreate(417, 294); //Create image Size
- $image = imagecreatefrompng("cj.png");
- $admin = imageCreatefrompng("admin.png");
- $wfilew=imagesx($image);//Get the width of the image
- $wfileh=imagesy( $image);//Get the height of the image
- $waterw=imagesx($admin);//Get the width of the watermark image
- $waterh=imagesy($admin);//Get the height of the watermark image
- //$imgbg = imagecolorallocate($image,30, 30, 30); //Picture background color
- //imagefill($image, 10, 10, $imgbg);
- $colorBlack = imagecolorallocate($image, 0, 0, 0);
- $colorBlacks = imagecolorallocate($image, 144, 144, 144);
- imagettftext($image, 20, 0,270, 250, $colorBlack, "simkai.ttf", "LV Tao");
- imagettftext($image , 12, 0,230, 424, $colorBlacks, "arial.ttf", "420528198602344812");
- imagettftext($image, 12, 0,290, 450, $colorBlacks, "arial.ttf", "PHP100-20100001");
- imagettftext($image, 12, 0,260, 477, $colorBlacks, "arial.ttf", "PHP100-20100001");
- imagecopy($image, $admin, 550, 350, 0, 0, $waterw,$waterh) ;
- //imagestring("2.jpg",2,3,10,$waterstring,$colorBlack);
- //$_SESSION['lvtao']=$waterstring;
- imagepng($image);
- ?>
-
-
-
-
-
-
-
- //$email = 'user@lvtao.net';
- //$domain = strstr($email, '@');
- / /echo $domain; // prints @lvtao.net'
- ?>
Copy code
|