This article mainly for you to introduce the PHP generated random watermark image of the relevant data, with a certain reference value, interested in small partners can refer to
Based on the PHP GD graphics library, generate a picture yourself. Only the first knowledge of GD library, example learning.
First, the demand
The layout of the site is similar to the style of the class Web course list, each course is a banner map, the following is the title
Copy Code code as follows:
' Text watermark
Function Wordwatermark (ImagePath)
Dim Image
Set image= Server.CreateObject ("Persits.jpeg") ' establishes an object
Image.open Server.MapPath (ImagePath) ' Image location
Image.Canvas.Font.Color = h000000 ' color, here is set to: Black
Image.Canvas.Font.Family = "XXFarEastFont-Arial" set font
Image.Canvas.Font.Bold = False ' is set to bold
Image.Canvas.Font.Size = 26 ' font size
Image.Canvas.
Download a lot of documents on the Internet with watermarks, we can not print the document together with the watermark! So how do you get rid of these watermarks? Here's how to easily watermark in the Word2003!
Note: Online download down the watermark is generally divided into two kinds: a direct word inside the added waterm
For the project to be handed over to accp5.0 certification on Christmas day 25, there is a requirement that the cover of all books in the bookstore should be placed under \ images \ convers, all the pictures under the referenced path must be added with the store name watermark image of the bookstore. That is to say, the HTTP request is intercepted. Naturally, it can be done by httphandler. In consideration, the effect should be as follows: for general
/// ///add a picture with a watermark effect at the specified position in a picture/// /// Specify the absolute path to the source picture /// Specify the absolute path to the watermark picture /// absolute path to save picture Public Static voidMakewatermark (stringSourceimage,stringWatermarkimage,stringsaveimage) { //create an object to manipulate the sourc
Today and everyone to share is how to print out the report to add watermark effect, that is, the title of the printed watermark. Why is it called print watermark, because if you use your computer to open this file, the watermark part is just WordArt, only after you print the document, you add a
How to add a watermark to WPS text
First, insert the default watermark
In the "Insert" menu to find the "watermark" icon, click ▽, we can see the preset watermark, select one of them, you can insert a watermark.
Insert the default
First of all, try not to be too big, do not let watermark distracting affect the picture itself. The watermark is positioned as neatly as possible and can be considered to align or interact with some of the screen elements.
If it is a photographic work, especially the scenery class, the author's custom is to design a and the location has the associated small icon, and then with 20xx Carl Armen Photogr
By setting up a watermark for the Word2003 document, you can make the original monotone Word document read-only and have a hint of meaning (for example, you want to highlight the copyright or importance of the edited Word document). The user can set a text watermark or a picture watermark for the Word document to set the text
Download a lot of documents on the web with a watermark, we can not print the document together with the watermark! So how do you get rid of these watermarks? Below let small make up to tell everyone in the Word2003 how easy to watermark it!
Note: online download down the watermark is generally divided into two kind
function to write the image watermark effect function, the code is as follows:
Program code:
Sub Jpegclass (imgurl,fontsize,family,isbold,top,left,content) ' Invoke procedure nameDim jpeg,font_color,font_size,font_family,f_width,f_height,f_content' Establish an instanceSet Jpeg = Server.CreateObject ("Persits.jpeg")font_size=10Font_family= "Song Body"F_left= 5F_top=5If imgurlJpeg.open Server.MapPath (imgurl) ' Picture path and
By setting up a watermark for the Word2003 document, you can make the original monotone Word document read-only and have a hint of meaning (for example, you want to highlight the copyright or importance of the edited Word document). The user can set a text watermark or a picture watermark for the Word document to set the text
By setting up a watermark for the Word2003 document, you can make the original monotone Word document read-only and have a hint of meaning (for example, you want to highlight the copyright or importance of the edited Word document). The user can set a text watermark or a picture watermark for the Word document to set the text
Step 1th, open the Word2013 document window and switch to the page layout ribbon. Click the Watermark button in the page background group and select the Custom Watermark command in the Open Watermark panel, as shown in Figure 1.
Figure 1 Selecting the Custom watermark command
2nd step, in the Open
Recently, many users on the site are always asked how to watermark, the first to be clear to the Toolbox has not yet been the function of the watermark, but I believe that the future will be realized slowly, everyone please look forward to.
Pictures and texts of the tutorial sent to everyone, if you ask how to watermark will not open Taobao, go home to plough!
Image processing: the implementation of watermarking and thumbnails (custom functions: watermark and thumbnail) code is a bit long, but not complex. Don't talk nonsense. paste the code:
The code is as follows:
/************************************// Function: watermark ($ bigimg, $ smallimg, $ coord = 1)// Function: add a watermark// Parameters:$ Bigimg is r
This article mainly introduces the ThinkPHP watermark function to fix PNG transparent watermarks and increase the JPEG image quality adjustable, including modifying the multi-layer watermark setting code, the modified part is described in more detail in the annotations, which is of great practical value, for more information about how to use the ThinkPHP watermark
Example of adding a watermark to a php image
Example: php code used to add a watermark to an image.
/*
// Example
$ Image = new Gimage ();
$ Image-> limit = 600; // maximum length and width
$ Image-> wm_text = "www.linuxlaptop.cn"; // watermark text
$ Image-> wm_fontfile = "font/xsuni. ttf"; // font file
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.