It's actually a watermark.
- // Session_start ();
- Header ("Content-type: image/png"); // declare an image
- // $ Image = imagecreate (417,294); // create an image size
- $ Image = imagecreatefrompng ("cj.png ");
- $ Admin = imageCreatefrompng ("admin.png ");
- $ Wfilew = imagesx ($ image); // Obtain the image width.
- $ Wfileh = imagesy ($ image); // Obtain the image height.
- $ Waterw = imagesx ($ admin); // Obtain the watermark image width.
- $ Waterh = imagesy ($ admin); // Obtain the watermark image height.
- // $ Imgbg = imagecolorallocate ($ image, 30, 30, 30); // The background color of the image.
- // 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", "Lu Yun ");
- 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 ['lvta'] = $ waterstring;
- Imagepng ($ image );
- ?>
- // $ Email = 'User @ lvtao.net ';
- // $ Domain = strstr ($ email ,'@');
- // Echo $ domain; // prints @ lvtao.net'
- ?>
|