CIFilter_GeometryAdjustment_PerspectiveTransformWithExtent - linhay/Stem GitHub Wiki
CIFilter.GeometryAdjustment.PerspectiveTransformWithExtent
Discussion You can use the perspective filter to skew an the portion of the image defined by extent. See CIPerspectiveTransform for an example of the output of this filter when you supply the input image size as the extent.
public struct PerspectiveTransformWithExtent: CIFilterContainerProtocol
Available in iOS 6.0 and later.
Inheritance
Initializers
init()
init()
Properties
filter
var filter: CIFilter
image
A CIImage object whose display name is Image.
var image: CIImage?
extent
A CIVector object whose whose attribute type is CIAttributeTypeRectangle. If you pass [image extent] you’ll get the same result as using the CIPerspectiveTransform filter.
var extent: CIVector?
topLeft
A CIVector object whose attribute type is CIAttributeTypePosition and whose display name is Top Left. Default value: [118 484]
var topLeft: CIVector
topRight
A CIVector object whose attribute type is CIAttributeTypePosition and whose display name is Top Right. Default value: [646 507]
var topRight: CIVector
bottomRight
A CIVector object whose attribute type is CIAttributeTypePosition and whose display name is Bottom Right. Default value: [548 140]
var bottomRight: CIVector
bottomLeft
A CIVector object whose attribute type is CIAttributeTypePosition and whose display name is Bottom Left. Default value: [155 153]
var bottomLeft: CIVector