project_files/HedgewarsMobile/Classes/UIImageExtra.h
changeset 6078 8c0cc07731e5
parent 4976 088d40d8aba2
child 6209 074ab6ebcb3e
equal deleted inserted replaced
6077:d8fa5a85d24f 6078:8c0cc07731e5
    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 +(CGSize) imageSizeFromMetadataOf:(NSString *)aFileName;
    28 
    29 
    29 -(UIImage *)scaleToSize:(CGSize) size;
    30 -(UIImage *)scaleToSize:(CGSize) size;
    30 -(UIImage *)mergeWith:(UIImage *)secondImage atPoint:(CGPoint) secondImagePoint;
    31 -(UIImage *)mergeWith:(UIImage *)secondImage atPoint:(CGPoint) secondImagePoint;
    31 -(id) initWithContentsOfFile:(NSString *)path andCutAt:(CGRect) rect;
    32 -(id) initWithContentsOfFile:(NSString *)path andCutAt:(CGRect) rect;
    32 -(UIImage *)cutAt:(CGRect) rect;
    33 -(UIImage *)cutAt:(CGRect) rect;
    33 -(UIImage *)convertToGrayScale;
    34 -(UIImage *)convertToGrayScale;
    34 -(UIImage *)convertToNegative;
    35 -(UIImage *)convertToNegative;
    35 -(UIImage *)maskImageWith:(UIImage *)maskImage;
    36 -(UIImage *)maskImageWith:(UIImage *)maskImage;
    36 -(UIImage *)makeRoundCornersOfSize:(CGSize) sizewh;
    37 -(UIImage *)makeRoundCornersOfSize:(CGSize) sizewh;
    37 +(UIImage *)whiteImage:(CGSize) ofSize;
       
    38 
    38 
    39 @end
    39 @end