project_files/HedgewarsMobile/Classes/UIImageExtra.h
changeset 3547 02875b1145b7
parent 3546 ccf4854df294
child 3621 a8ddf681ba7d
equal deleted inserted replaced
3546:ccf4854df294 3547:02875b1145b7
       
     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;
       
    16 -(UIImage *)mergeWith:(UIImage *)secondImage atPoint:(CGPoint) secondImagePoint atSize:(CGSize) resultingSize;
       
    17 -(id) initWithContentsOfFile:(NSString *)path andCutAt:(CGRect) rect;
       
    18 -(UIImage *)convertToGrayScale;
       
    19 -(UIImage *)maskImageWith:(UIImage *)maskImage;
       
    20 -(UIImage *)makeRoundCornersOfSize:(CGSize) sizewh;
       
    21 
       
    22 @end