vectorWithCGRect:
Create a Core Image vector object that is initialized with four values provided by a CGRect structure.
Declaration
+ (instancetype) vectorWithCGRect:(CGRect) r;Parameters
- r:
The
CGRectstructure.
Return Value
An autoreleased CIVector object of length 4.
Discussion
The CGRect structure’s x, y, height and width values are stored in the vector’s four values.