Contents

apply(withTiledExtent:inputs:arguments:)

Call this method on your Core Image Processor Kernel subclass to create a new image based on an array of tile extents that together cover the output.

Declaration

class func apply(withTiledExtent tileExtents: [CIVector], inputs: [CIImage]?, arguments args: [String : Any]?) throws -> CIImage

Parameters

  • tileExtents:

    The array of bounding rectangles that the CIImageProcessorKernel can produce. Each rectangle in the array is an object created using /CIVector/vectorWithCGRect: This method will return CIImage.emptyImage if the rectangles in the array have gaps or overlaps.

  • inputs:

    An array of Ciimage objects to use as input.

Return Value

An autoreleased CIImage

Discussion

Each tile is a CGRect encoded as a CIVector using +[CIVector vectorWithCGRect:]. The overall output extent is computed as the union of all tile extents.

This method will return nil and an error if: