CIFilter_GeometryAdjustment_AffineTransform - linhay/Stem GitHub Wiki

CIFilter.GeometryAdjustment.AffineTransform

Discussion You can scale, translate, or rotate the input image. You can also apply a combination of these operations.

public struct AffineTransform: CIFilterContainerProtocol

Inheritance

CIFilterContainerProtocol

Initializers

init()

init()

Properties

filter

var filter: CIFilter

image

A CIImage object whose display name is Image.

var image: CIImage?

transform

On iOS, an NSValue object whose attribute type is CIAttributeTypeTransform. You must pass the transform as NSData using a statement similar to the following, where xform is an affine transform:

var transform: NSValue?
      [myFilter setValue:[NSValue valueWithBytes:&xform
                                        objCType:@encode(CGAffineTransform)]
                  forKey:@"inputTransform"];

On OS X, an NSAffineTransform object whose attribute type is CIAttributeTypeTransform.