Now more and more websites like to upload the user's pictures plus the copyright information of the site, do not think that is using Photoshop and other picture processing software added to, in fact, we just write a small piece of code, you can achieve this function.
The principle of adding copyright information is quite simple: get the object of graphics class by picture, the class has a drawstring () method can write the information to the picture, even can make a variety of effects, such as watermark, background transparent and so on. The final save picture is done.
We create a Windows Application project, and the interface design is as follows:
The code to add copyright information is as follows:
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.