Swift-Add a picture watermark to a picture-base use

Source: Internet
Author: User

Use Sample 1 2 3 4 5 6 7 8 9 import  uikit   class  viewcontroller:  UIVIEWC ontroller  {       @IBOutlet   weak  var  imageview:  Uiimageview! & nbsp;          override  func  viewdidload () {          super. Viewdidload ()                            /Add watermark to Picture           imageview.image =  uiimage (named: "BG")?              watermarkedimage (UIImage (named:  "Logo7")!,corner:. TopLeft,                  margin :  Cgpoint (x:20, y:20), alpha:1)     }        override  func  didreceivememorywarning () {         Super. Didreceivememorywarning ()     }}
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.

Tags Index: