1.加文字
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
- (UIImage *)imageWithLogoText:(UIImage *)img text:(
NSString
*)text1
{
}
|
2.新的添加文字水印的方法一
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#pragma mark -也是文字水印
- (UIImage *) imageWithStringWaterMark
{
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 40000
#else
#endif
}
|
3.还是添加文字水印方法二
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#pragma mark -还是文字水印
- (UIImage *) imageWithStringWaterMark
{
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 40000
#else
#endif
}
|
4.加图片
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma mark - 加图片水印
-(UIImage *)imageWithLogoImage:(UIImage *)img logo:(UIImage *)logo
{
}
|
5.新的添加图片水印的方法
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#pragma mark -还是图片水印
- (UIImage *) imageWithWaterMask:(UIImage*)mask inRect:(CGRect)rect
{
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 40000
#else
#endif
}
|
6 .加半透明的水印
1
2
3
4
5
6
7
8
9
10
11
|
//加半透明的水印
-(UIImage *)imageWithTransImage:(UIImage *)useImage addtransparentImage:(UIImage *)transparentimg
{
}
|