CIImage

public extension CIImage
  • Date

    May 24, 2017

    Declaration

    Swift

    var toCGImage: CGImage? { get }

    Return Value

    A CGImage that represents the current CIImage.

  • Calculate the RGBA values for the specified point in a CIImage.

    Date

    May 24, 2017

    Declaration

    Swift

    func rgbValues(atPoint point: CGPoint) -> (red: UInt8, green: UInt8, blue: UInt8, alpha: UInt8)?

    Parameters

    point

    A CGPoint in the CIImage to extract RGBA information.

    Return Value

    A tuple containing red, green, blue, and alpha values at the specified point if they could be extracted, or a nil value otherwise.