SDImageRotationTransformer

@interface SDImageRotationTransformer : NSObject <SDImageTransformer>

Image rotation transformer

  • Rotated radians in counterclockwise.⟲

    Declaration

    Objective-C

    @property (readonly, nonatomic) CGFloat angle;

    Swift

    var angle: CGFloat { get }
  • YES: new image’s size is extend to fit all content. NO: image’s size will not change, content may be clipped.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL fitSize;

    Swift

    var fitSize: Bool { get }
  • Unavailable

    Declaration

    Objective-C

    - (nonnull instancetype)init NS_UNAVAILABLE;
  • Declaration

    Objective-C

    + (nonnull instancetype)transformerWithAngle:(CGFloat)angle fitSize:(BOOL)fitSize;

    Swift

    convenience init(angle: CGFloat, fitSize: Bool)