init(cgRect:)
Initialize a Core Image vector object with four values provided by a CGRect structure.
Declaration
convenience init(cgRect r: CGRect)Parameters
- r:
The
CGRectstructure.
Return Value
An initialized CIVector object of length 4.
Discussion
The CGRect structure’s x, y, height and width values are stored in the vector’s four values.