Full list of Spatial Filters
Full list of Filters
Full list of Shader Effects
This filter applies an affine transform to an image and then tiles the transformed image. It is often used to create repeating patterns or textures.
Transform: The affine transform to be applied to the image. This parameter controls the transformation matrix used to warp the image.
override func getCIFilter(_ ciImage: CIImage)->CIFilter { var affineTileFilter: CIFilter if affineTileCIFilter != nil { affineTileFilter = affineTileCIFilter! } else { affineTileFilter = CIFilter(name: type)! affineTileCIFilter=affineTileFilter } affineTileFilter.setValue(ciImage, forKey: kCIInputImageKey) let transform=CGAffineTransform(a:a,b:b,c:c,d:d,tx:tx,ty:ty) affineTileFilter.setValue(transform, forKey: kCIInputTransformKey) if cropToFormat{ super.setCIFilterAndCropImage(inputImage: affineTileFilter.outputImage!) return ciFilter! } else{ ciFilter=affineTileFilter return ciFilter! } }