12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- #import "SDWebImageCompat.h"
- typedef void (^SDGraphicsImageDrawingActions)(CGContextRef _Nonnull context);
- typedef NS_ENUM(NSInteger, SDGraphicsImageRendererFormatRange) {
- SDGraphicsImageRendererFormatRangeUnspecified = -1,
- SDGraphicsImageRendererFormatRangeAutomatic = 0,
- SDGraphicsImageRendererFormatRangeExtended,
- SDGraphicsImageRendererFormatRangeStandard
- };
- @interface SDGraphicsImageRendererFormat : NSObject
- @property (nonatomic) CGFloat scale;
- @property (nonatomic) BOOL opaque;
- @property (nonatomic) SDGraphicsImageRendererFormatRange preferredRange;
- - (nonnull instancetype)init;
- + (nonnull instancetype)preferredFormat;
- @end
- @interface SDGraphicsImageRenderer : NSObject
- - (nonnull instancetype)initWithSize:(CGSize)size;
- - (nonnull instancetype)initWithSize:(CGSize)size format:(nonnull SDGraphicsImageRendererFormat *)format;
- - (nonnull UIImage *)imageWithActions:(nonnull NS_NOESCAPE SDGraphicsImageDrawingActions)actions;
- @end
|