2014-12-26 23:18:54 +01:00
|
|
|
//
|
2018-02-07 18:44:09 +01:00
|
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
2014-12-26 23:18:54 +01:00
|
|
|
//
|
|
|
|
|
2017-12-04 23:17:44 +01:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
2014-12-26 23:18:54 +01:00
|
|
|
|
|
|
|
@interface UIImage (normalizeImage)
|
|
|
|
|
|
|
|
- (UIImage *)normalizedImage;
|
2014-12-31 19:31:27 +01:00
|
|
|
- (UIImage *)resizedWithQuality:(CGInterpolationQuality)quality rate:(CGFloat)rate;
|
|
|
|
|
2018-09-05 17:33:45 +02:00
|
|
|
- (nullable UIImage *)resizedWithMaxDimensionPoints:(CGFloat)maxDimensionPoints;
|
2018-09-04 21:21:48 +02:00
|
|
|
- (nullable UIImage *)resizedImageToSize:(CGSize)dstSize;
|
2017-04-29 03:58:42 +02:00
|
|
|
- (UIImage *)resizedImageToFillPixelSize:(CGSize)boundingSize;
|
2014-12-26 23:18:54 +01:00
|
|
|
|
2017-09-12 16:14:17 +02:00
|
|
|
+ (UIImage *)imageWithColor:(UIColor *)color;
|
|
|
|
+ (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size;
|
|
|
|
|
2014-12-26 23:18:54 +01:00
|
|
|
@end
|
2017-12-04 23:17:44 +01:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|