project_files/HedgewarsMobile/Classes/UIImageExtra.h
author smaxx
Fri, 30 Jul 2010 18:20:42 +0200
changeset 3689 e2be39ee19f0
parent 3621 a8ddf681ba7d
child 3829 81db3c85784b
permissions -rw-r--r--
Engine: * Engine will now try to load the grave "Statue" if it couldn't load a team's grave graphic (http://code.google.com/p/hedgewars/issues/detail?id=3) * Explosions may now create chunks/stones knocked out of the landscape (only supported on Olympic theme so far)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     1
//
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     2
//  UIImageExtra.h
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     3
//  HedgewarsMobile
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     4
//
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     5
//  Created by Vittorio on 08/04/10.
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     7
//
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     8
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     9
#import <Foundation/Foundation.h>
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    10
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    11
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    12
@interface UIImage (extra)
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    13
 
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    14
-(UIImage *)scaleToSize:(CGSize) size;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    15
-(UIImage *)mergeWith:(UIImage *)secondImage atPoint:(CGPoint) secondImagePoint;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    16
-(UIImage *)mergeWith:(UIImage *)secondImage atPoint:(CGPoint) secondImagePoint atSize:(CGSize) resultingSize;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    17
-(id) initWithContentsOfFile:(NSString *)path andCutAt:(CGRect) rect;
3621
a8ddf681ba7d initial support for customizing weaponset
koda
parents: 3547
diff changeset
    18
-(UIImage *)cutAt:(CGRect) rect;
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    19
-(UIImage *)convertToGrayScale;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    20
-(UIImage *)maskImageWith:(UIImage *)maskImage;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    21
-(UIImage *)makeRoundCornersOfSize:(CGSize) sizewh;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    22
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    23
@end