project_files/HedgewarsMobile/Classes/UIImageExtra.h
branchhedgeroid
changeset 6224 42b256eca362
parent 6209 074ab6ebcb3e
child 6700 e04da46ee43c
equal deleted inserted replaced
6055:88cfcd9161d3 6224:42b256eca362
    22 #import <Foundation/Foundation.h>
    22 #import <Foundation/Foundation.h>
    23 
    23 
    24 
    24 
    25 @interface UIImage (extra)
    25 @interface UIImage (extra)
    26 
    26 
    27 CGFloat getScreenScale(void);
    27 +(UIImage *)whiteImage:(CGSize) ofSize;
       
    28 +(UIImage *)drawHogsRepeated:(NSInteger) manyTimes;
       
    29 +(CGSize) imageSizeFromMetadataOf:(NSString *)aFileName;
    28 
    30 
    29 -(UIImage *)scaleToSize:(CGSize) size;
    31 -(UIImage *)scaleToSize:(CGSize) size;
    30 -(UIImage *)mergeWith:(UIImage *)secondImage atPoint:(CGPoint) secondImagePoint;
    32 -(UIImage *)mergeWith:(UIImage *)secondImage atPoint:(CGPoint) secondImagePoint;
    31 -(id) initWithContentsOfFile:(NSString *)path andCutAt:(CGRect) rect;
    33 -(id) initWithContentsOfFile:(NSString *)path andCutAt:(CGRect) rect;
    32 -(UIImage *)cutAt:(CGRect) rect;
    34 -(UIImage *)cutAt:(CGRect) rect;
    33 -(UIImage *)convertToGrayScale;
    35 -(UIImage *)convertToGrayScale;
    34 -(UIImage *)convertToNegative;
    36 -(UIImage *)convertToNegative;
    35 -(UIImage *)maskImageWith:(UIImage *)maskImage;
    37 -(UIImage *)maskImageWith:(UIImage *)maskImage;
    36 -(UIImage *)makeRoundCornersOfSize:(CGSize) sizewh;
    38 -(UIImage *)makeRoundCornersOfSize:(CGSize) sizewh;
    37 +(UIImage *)whiteImage:(CGSize) ofSize;
       
    38 
    39 
    39 @end
    40 @end