Blame view

SDWebImage/UIImage+MultiFormat.h 836 Bytes
1 2 3 4 5 6 7
/*
 * This file is part of the SDWebImage package.
 * (c) Olivier Poitrey <rs@dailymotion.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
Olivier Poitrey authored
8
9
#import "SDWebImageCompat.h"
10
#import "NSData+ImageContentType.h"
Olivier Poitrey authored
11 12 13

@interface UIImage (MultiFormat)
14 15 16 17 18 19 20 21 22

/**
 * For static image format, this value is always 0.
 * For animated image format, 0 means infinite looping.
 * Note that because of the limitations of categories this property can get out of sync
 * if you create another instance with CGImage or other methods.
 */
@property (nonatomic, assign) NSUInteger sd_imageLoopCount;
23
+ (nullable UIImage *)sd_imageWithData:(nullable NSData *)data;
24 25
- (nullable NSData *)sd_imageData;
- (nullable NSData *)sd_imageDataAsFormat:(SDImageFormat)imageFormat;
Olivier Poitrey authored
26 27

@end