ImageModifier

public protocol ImageModifier

An ImageModifier can be used to change properties on an image in between cache serialization and use of the image. The modified returned image will be only used for current rendering purpose, the serialization data will not contain the changes applied by the ImageModifier.

  • Modify an input Image.

    Note

    The return value will be unmodified if modifying is not possible on the current platform.

    Note

    Most modifiers support UIImage or NSImage, but not CGImage.

    Declaration

    Swift

    func modify(_ image: KFCrossPlatformImage) -> KFCrossPlatformImage

    Parameters

    image

    Image which will be modified by self

    Return Value

    The modified image.