<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.3.0 -",
    "tvOS: 5.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImageTableLookUp_ARGB8888(_:_:_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@vImageTableLookUp_ARGB8888"
  },
  "title" : "vImageTableLookUp_ARGB8888(_:_:_:_:_:_:_:)"
}
-->

# vImageTableLookUp_ARGB8888(_:_:_:_:_:_:_:)

Uses a lookup table to transform an interleaved, four-channel 8-bit planar image to an interleaved, four-channel 8-bit planar image.

```
func vImageTableLookUp_ARGB8888(_ src: UnsafePointer<vImage_Buffer>, _ dest: UnsafePointer<vImage_Buffer>, _ alphaTable: UnsafePointer<Pixel_8>!, _ redTable: UnsafePointer<Pixel_8>!, _ greenTable: UnsafePointer<Pixel_8>!, _ blueTable: UnsafePointer<Pixel_8>!, _ flags: vImage_Flags) -> vImage_Error
```

## Parameters

`src`

The source vImage buffer.

`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.

`alphaTable`

A lookup table for the alpha channel that contains 256 [`Pixel_8`](/documentation/Accelerate/Pixel_8) values. Pass `nil` to specify that the function copies the alpha channel unchanged to the destination buffer.

`redTable`

A lookup table for the red channel that contains 256 [`Pixel_8`](/documentation/Accelerate/Pixel_8) values. Pass `nil` to specify that the function copies the alpha channel unchanged to the destination buffer.

`greenTable`

A lookup table for the green channel that contains 256 [`Pixel_8`](/documentation/Accelerate/Pixel_8) values. Pass `nil` to specify that the function copies the alpha channel unchanged to the destination buffer.

`blueTable`

A lookup table for the blue channel that contains 256 [`Pixel_8`](/documentation/Accelerate/Pixel_8) values. Pass `nil` to specify that the function copies the alpha channel unchanged to the destination buffer.

`flags`

The options to use when performing the operation. If your code implements its own tiling or its own multithreading, pass [`kvImageDoNotTile`](/documentation/Accelerate/kvImageDoNotTile).

## Return Value

[`kvImageNoError`](/documentation/Accelerate/kvImageNoError); otherwise, one of the error codes in <doc://com.apple.documentation/documentation/Accelerate/data-types-and-constants>.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)