Nuke Documentation

Structure Image​Processors.​Rounded​Corners

public struct RoundedCorners: ImageProcessing, Hashable, CustomStringConvertible  

Rounds the corners of an image to the specified radius.

ImageProcessors.RoundedCorners ImageProcessors.RoundedCorners ImageProcessing ImageProcessing ImageProcessors.RoundedCorners->ImageProcessing Hashable Hashable ImageProcessors.RoundedCorners->Hashable CustomStringConvertible CustomStringConvertible ImageProcessors.RoundedCorners->CustomStringConvertible

Member Of

ImageProcessors

A namespace for all processors that implement ImageProcessing protocol.

Conforms To

ImageProcessing

Performs image processing.

CustomStringConvertible
Hashable

Initializers

init(radius:​unit:​border:​)

public init(radius: CGFloat, unit: ImageProcessingOptions.Unit = .points, border: ImageProcessingOptions.Border? = nil)  

Initializes the processor with the given radius.

Parameters

radius CGFloat

The radius of the corners.

unit Image​Processing​Options.​Unit

Unit of the radius, .points by default.

border Image​Processing​Options.​Border?

An optional border drawn around the image.

Properties

identifier

public var identifier: String  

hashable​Identifier

public var hashableIdentifier: AnyHashable  

description

public var description: String  

Methods

process(_:​)

public func process(_ image: PlatformImage) -> PlatformImage?