Swift - 給圖片添加圖片浮水印_基礎使用

來源:互聯網
上載者:User
使用範例 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 import  UIKit   class  ViewController :  UIViewController  {        @IBOutlet  weak  var  imageView:  UIImageView !            override  func  viewDidLoad() {          super .viewDidLoad()                           //給圖片添加浮水印          imageView.image =  UIImage (named: "bg" )?              .waterMarkedImage( UIImage (named:  "logo7" )!,corner: . TopLeft ,                  margin:  CGPoint (x: 20, y: 20), alpha:1)      }        override  func  didReceiveMemoryWarning() {          super .didReceiveMemoryWarning()      } }
相關文章

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.