This article mainly for you to introduce the PHP generated random watermark image of the relevant data, with a certain reference value, interested in the small partners can refer to the PHP-based GD Graphics library, generate a picture themselves.
ErrorMsg;} /*** parameter settings * @author sanshi0815* @param string$font font file with a directory text watermark using * @param string$watermark watermark text or image address * @param string$ Srcfile Original Image Address * @param
Php image and Chinese watermark implementation code sharing Example 1
The code is as follows:
Header ("Content-type: image/png");/* notify the browser to output the image */
$ Im = imagecreate (400,300);/* define the image size */
$ Gray =
Php code for adding a Chinese watermark to an image
Header ("Content-type: image/png");/* notify the browser to output the image */
$ Im = imagecreate (400,300);/* define the image size */
$ Gray =
In php, adding watermarks to Chinese characters requires some simple processing. one is to convert characters into gbk, and the other is to load Chinese fonts, with these two conditions, adding a Chinese watermark to the image is simple. Example 1
In php, adding watermarks to Chinese characters requires some simple processing. one is to convert characters into gbk, and the other is to load Chinese fonts, with these two conditions, adding a Chinese watermark to the image is simple.
Example
In php, adding watermarks to Chinese characters requires some simple processing. one is to convert characters into gbk, and the other is to load Chinese fonts, with these two conditions, adding a Chinese watermark to the image is simple. Example 1
$im = Imagecreatetruecolor (100,100);//Create a new true color image
$white = Imagecolorallocate ($im, 255,235,255);//Assign a color to an image, which is different from my design knowledge. I never thought that when painting, you should assign a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.