Option
public enum Option
Options to edit image.
- GaussianBlur: Blur effect.
- CornerRadius: Round corner.
- ScaleToFill: Crop image to fit container size.
- Oval: Crop image to oval.
-
Pass a radius value.
Declaration
Swift
case GaussianBlur(CGFloat)
-
Corner radius might be different by image size.
Declaration
Swift
case CornerRadius(CGFloat)
-
Scale to fill container.
Declaration
Swift
case ScaleToFill(CGSize)
-
Crop image to oval.
Declaration
Swift
case Oval
-
Perform batch operations, in order. Note: Animated UIImage would not be processed for now.
Declaration
Swift
public static func batch(image: UIImage?, options: [Option]?, done: (UIImage?) -> Void)
Parameters
image
Input image.
options
Things to deal with image.
done
Callback when done, in main thread.