// // UIImage+HXExtension.h // HXPhotoPickerExample // // Created by Silence on 17/2/15. // Copyright © 2017年 Silence. All rights reserved. // #import #import @interface UIImage (HXExtension) + (UIImage *)hx_imageNamed:(NSString *)imageName; + (UIImage *)hx_imageContentsOfFile:(NSString *)imageName; + (UIImage *)hx_thumbnailImageForVideo:(NSURL *)videoURL atTime:(NSTimeInterval)time; + (UIImage *)hx_animatedGIFWithData:(NSData *)data; + (UIImage *)hx_animatedGIFWithURL:(NSURL *)URL; - (UIImage *)hx_normalizedImage; - (UIImage *)hx_scaleImagetoScale:(float)scaleSize; - (UIImage *)hx_rotationImage:(UIImageOrientation)orient; + (UIImage *)hx_imageWithColor:(UIColor *)color havingSize:(CGSize)size; - (UIImage *)hx_cropInRect:(CGRect)rect; - (UIImage *)hx_roundClipingImage; - (UIImage *)hx_scaleToFillSize:(CGSize)size; - (UIImage *)hx_mergeimages:(NSArray *)images; + (UIImage *)hx_mergeimages:(NSArray *)images; + (CGSize)hx_scaleImageSizeBySize:(CGSize)imageSize targetSize:(CGSize)size isBoth:(BOOL)isBoth ; - (UIImage *)hx_scaleToFitSize:(CGSize)size; @end