TODO: Change the font to go code

Source: Internet
Author: User
This is a created article in which the information may have evolved or changed.

TODO: Change the font to go code

Image package implements a basic 2D image library, the package contains the basic interface called image, which contains color, this will be described in Image/color, new font fonts, font editing. As early as a few years ago go image package came out of someone to achieve the image-type watermark processing, processing is very convenient, interested friends can use search engines. The main function of this paper is to implement the watermark function by using the font of Golang image, and realize the font size, pixel and coordinate. Interested friends can copy to the local test to see. Because some of the platform code compatibility is not good, so the code is presented in a picture, you can contact me if necessary.




The original image of the test:


After the water is printed:


After many tests, Image/font and did not realize similar Chinese hieroglyphics (such as Japanese, Korean, Thai) are output baskets (such as), I hope that the official output of Golang as soon as possible, such as the folk have a Master hope to guide, greatly appreciated.


Wxgzh:ludong86


Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.