CzJWaterMark icon indicating copy to clipboard operation
CzJWaterMark copied to clipboard

iOS 图片全屏水印/屏幕全屏水印 Image full screen watermark/ full screen watermark

CzJWaterMark

新增:

 textFont  水印字体大小
 textColor 水印颜色

使用说明

#import "AddWaterMark.h"

1.图片全屏水印 Image full screen watermark

AddWaterMark *makr = [[AddWaterMark alloc] init];
mark.textFont = [UIFont systemFontOfSize:14];
mark.textColor = [UIColor redColor];
UIImage *logo = [mark addWaterMark:bgImg watemarkText:@"WaterMark-我是水印"];
UIImageView *imageview = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, logo.size.width, logo.size.height)];
imageview.image = logo;
[self.view addSubview:imageview];

2.全屏水印 full screen watermark

AddWaterMark *mark = [[AddWaterMark alloc] init];
mark.textFont = [UIFont systemFontOfSize:14];
mark.textColor = [UIColor redColor];
UIImage *logo = [mark watemarkText:@"WaterMark-我是水印"];
self.view.layer.contents = (__bridge id _Nullable)(logo.CGImage);