Contents

init(cgRect:)

Create a Core Image vector object that is initialized with four values provided by a CGRect structure.

Declaration

convenience init(cgRect r: CGRect)

Parameters

  • r:

    The CGRect structure.

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.

See Also

Creating a Vector