author | koda |
Sun, 20 Jun 2010 18:35:59 +0200 | |
changeset 3523 | 6592fbb969da |
parent 3514 | 59dbd31e9953 |
permissions | -rw-r--r-- |
3352 | 1 |
// |
2 |
// UIImageExtra.h |
|
3 |
// HedgewarsMobile |
|
4 |
// |
|
5 |
// Created by Vittorio on 08/04/10. |
|
6 |
// Copyright 2010 __MyCompanyName__. All rights reserved. |
|
7 |
// |
|
8 |
||
9 |
#import <Foundation/Foundation.h> |
|
10 |
||
11 |
||
12 |
@interface UIImage (extra) |
|
13 |
||
14 |
-(UIImage *)scaleToSize:(CGSize) size; |
|
15 |
-(UIImage *)mergeWith:(UIImage *)secondImage atPoint:(CGPoint) secondImagePoint; |
|
3361 | 16 |
-(UIImage *)mergeWith:(UIImage *)secondImage atPoint:(CGPoint) secondImagePoint atSize:(CGSize) resultingSize; |
3352 | 17 |
-(id) initWithContentsOfFile:(NSString *)path andCutAt:(CGRect) rect; |
3492
07256e1ad559
map preview generation reworked like nemo suggested (he was right, it's quickier in this way)
koda
parents:
3463
diff
changeset
|
18 |
-(UIImage *)convertToGrayScale; |
07256e1ad559
map preview generation reworked like nemo suggested (he was right, it's quickier in this way)
koda
parents:
3463
diff
changeset
|
19 |
-(UIImage *)maskImageWith:(UIImage *)maskImage; |
07256e1ad559
map preview generation reworked like nemo suggested (he was right, it's quickier in this way)
koda
parents:
3463
diff
changeset
|
20 |
-(UIImage *)makeRoundCornersOfSize:(CGSize) sizewh; |
3352 | 21 |
|
22 |
@end |