FWImageFrame
@interface FWImageFrame : NSObject
动图单帧对象
-
单帧图片
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIImage *_Nonnull image;
-
单帧时长
Declaration
Objective-C
@property (nonatomic, readonly) NSTimeInterval duration;
-
创建单帧对象
Declaration
Objective-C
- (nonnull instancetype)initWithImage:(nonnull UIImage *)image duration:(NSTimeInterval)duration;
-
根据单帧对象创建动图Image
Declaration
Objective-C
+ (nullable UIImage *)animatedImageWithFrames: (nullable NSArray<FWImageFrame *> *)frames;
-
从动图Image创建单帧对象数组
Declaration
Objective-C
+ (nullable NSArray<FWImageFrame *> *)framesFromAnimatedImage: (nullable UIImage *)animatedImage;