---
title: "VTPixelRotationSessionCreate(_:_:)"
framework: videotoolbox
role: symbol
role_heading: Function
path: "videotoolbox/vtpixelrotationsessioncreate(_:_:)"
---

# VTPixelRotationSessionCreate(_:_:)

Creates a session to rotate images between pixel buffers.

## Declaration

```swift
func VTPixelRotationSessionCreate(_ allocator: CFAllocator?, _ pixelRotationSessionOut: UnsafeMutablePointer<VTPixelRotationSession?>) -> OSStatus
```

## Parameters

- `allocator`: An allocator for the session. Specify NULL to use the default allocator.
- `pixelRotationSessionOut`: On output, an initialized pixel rotation session.

## See Also

### Managing a Session

- [VTPixelRotationSessionInvalidate(_:)](videotoolbox/vtpixelrotationsessioninvalidate(_:).md)
