---
title: "vectorWithValues:count:"
framework: coreimage
role: symbol
role_heading: Type Method
path: "coreimage/civector/vectorwithvalues:count:"
---

# vectorWithValues:count:

Create a Core Image vector object that is initialized with the specified values.

## Declaration

```occ
+ (instancetype) vectorWithValues:(const CGFloat *) values count:(size_t) count;
```

## Parameters

- `values`: The pointer CGFloat values to initialize the vector with.
- `count`: The number of CGFloats specified by the values parameter.

## Return Value

Return Value  An autoreleased CIVector object of length count.

## See Also

### Creating a Vector

- [vectorWithX:](coreimage/civector/vectorwithx:.md)
- [vectorWithX:Y:](coreimage/civector/vectorwithx:y:.md)
- [vectorWithX:Y:Z:](coreimage/civector/vectorwithx:y:z:.md)
- [vectorWithX:Y:Z:W:](coreimage/civector/vectorwithx:y:z:w:.md)
- [vectorWithString:](coreimage/civector/vectorwithstring:.md)
- [init(cgAffineTransform:)](coreimage/civector/init(cgaffinetransform:)-59e4k.md)
- [init(cgPoint:)](coreimage/civector/init(cgpoint:)-3mobm.md)
- [init(cgRect:)](coreimage/civector/init(cgrect:)-3undj.md)
