First, Watermark1. CanvasSystem.Drawing.Image img = System.Drawing.Image.FromStream (fileupload1.filecontent);2. Create a drawing object and tell it which picture to draw onGraphics g = Graphics.fromimage (IMG);3. What to Drawstring s =
Using System;Using System.Collections.Generic;Using System.Text;Using System.IO;Using System.Drawing.Imaging;Using System.Drawing;Using System.Web;Namespace ZC. Utils{public static Class Imagehelper{#region Picture Format ConversionImage format
Imagema to add a watermark to the image, the watermark image will change the reason: the color space of the picture does not correspond to the watermark is the original CMYK watermark (actually a composite picture) command: Convert e:\1.jpg e:\water.
at present, QQ space and Sina Weibo and other social software, shared images are mostly added watermark. After adding a watermark, the photos become unique, as if they were adding a personal signature. Can be very good to prevent people from
The code is as follows:Copy code /** Created on 2010-6-21 ** The class for control image ** Made by s71ence ** @ $ Img_path: Image path* @ $ Is_auto_reduce: whether the image is automatically compressed according to the size level. 1 is* @ $
This article PHP picture operation package class inside four kinds of methods, text watermark (Imagettftext ()), Picture Watermark (Imagecopymerge ()), picture compression, picture clipping (imagecopyresampled ()), the rest of the usual GD function
Copy codeThe Code is as follows: /**
* File Upload class
*/
Class uploadFile {
Public $ max_size = '000000'; // sets the size of the uploaded file.
Public $ file_name = 'date'; // The rename method indicates that the name is named by time. Otherwise,
Php file Upload class program code. Now we only need to search for a large number of file Upload classes, but there are not many really useful Upload classes. I will introduce this file Upload class for a long time, A very good code. now we only
Php file Upload class code. For more information about php learning, see. This code is well encapsulated for upload processing. for details, refer.
The code is as follows:
/*** File Upload class*/Class uploadFile {Public $ max_size = '000000'; /
PHP thumbnails and image watermark creation,
1. Start
Thumbnails are often used in the process of uploading images to websites. Here I wrote an Image class for Image processing, which can generate thumbnails and add watermarks.
2. How to generate a
Php file Upload class code. Copy the code as follows :? Php *** file Upload class * classuploadFile {public $ max_size000000; set the size of the uploaded file to public $ file_namedate; rename indicates
The code is as follows:
/*** File Upload
GD database usage summary --- 2, gd summary --- 2. GD database usage summary --- 2, gd summary --- 2 and the previous article. The GD library can be used in a lot of ways. of course, it must be related to drawing. in addition to the verification
Php file Upload class (classic easy to use-favorites) favorites a classic easy to use php file Upload class, the function is quite complete, leave it for development in reserve.
Good things are really good, haha !!!
/*** File Upload class*/Class
The PHP watermarking code supports text and image watermarks. PHP adds image and text watermark codes, and PHP adds watermarks. it supports the transparency setting of text image watermarks and the transparency of the watermark image background. I
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.
Using System;
Using System. Drawing;
Using System. Drawing. Imaging;
Using System. Collections;
Using System. ComponentModel;
Using System. Windows. Forms;
Using System. Data;
Using System. IO;
Namespace test{///
/// Summary of Form1.///
Public
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.