---
title: "vImageVerticalReflect_ARGB16U(_:_:_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/vimageverticalreflect_argb16u(_:_:_:)"
---

# vImageVerticalReflect_ARGB16U(_:_:_:)

Reflects an unsigned 16-bit-per-channel, 4-channel interleaved image vertically across the center horizontal line.

## Declaration

```swift
func vImageVerticalReflect_ARGB16U(_ src: UnsafePointer<vImage_Buffer>, _ dest: UnsafePointer<vImage_Buffer>, _ flags: vImage_Flags) -> vImage_Error
```

## Parameters

- `src`: A pointer to a vImage buffer structure that contains the source image.
- `dest`: A pointer to the destination vImage buffer structure. You’re responsible for filling out the height, width, and rowBytes fields of this structure and for allocating a data buffer of the appropriate size. On return, the data buffer this structure points to contains the destination image data. When you no longer need the data buffer, deallocate the memory to prevent memory leaks.
- `flags`: The options to use when performing the operation. If your code implements its own tiling or its own multithreading, pass doc://com.apple.accelerate/documentation/Accelerate/kvImageDoNotTile, otherwise, pass doc://com.apple.accelerate/documentation/Accelerate/kvImageNoFlags.

## Return Value

Return Value kvImageNoError; otherwise, one of the error codes in Data Types and Constants.

## Discussion

Discussion This function doesn’t scale or resample; instead, it copies unchanged individual pixels to new locations. The source and destination buffers need to have the same height and the same width. This function doesn’t work in place — that is, the source and destination buffers need to point to different memory.

## See Also

### Related Documentation

- [Applying geometric transforms to images](accelerate/applying-geometric-transforms-to-images.md)

### Applying vertical reflection to 16-bit-per-channel buffers

- [vImageVerticalReflect_Planar16U(_:_:_:)](accelerate/vimageverticalreflect_planar16u(_:_:_:).md)
- [vImageVerticalReflect_Planar16F(_:_:_:)](accelerate/vimageverticalreflect_planar16f(_:_:_:).md)
- [vImageVerticalReflect_CbCr16F(_:_:_:)](accelerate/vimageverticalreflect_cbcr16f(_:_:_:).md)
- [vImageVerticalReflect_ARGB16S(_:_:_:)](accelerate/vimageverticalreflect_argb16s(_:_:_:).md)
- [vImageVerticalReflect_ARGB16F(_:_:_:)](accelerate/vimageverticalreflect_argb16f(_:_:_:).md)
