---
title: "transform(_:backgroundColor:useFloat16Accumulator:destination:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/vimage/pixelbuffer/transform(_:backgroundcolor:usefloat16accumulator:destination:)-1lvaa"
---

# transform(_:backgroundColor:useFloat16Accumulator:destination:)

Applies a Core Graphics affine transformation to a floating-point 16-bit-per-channel, four-channel interleaved pixel buffer.

## Declaration

```swift
func transform(_ transform: CGAffineTransform, backgroundColor: Pixel_ARGB_16F? = (0, 0, 0, 0), useFloat16Accumulator: Bool = false, destination: vImage.PixelBuffer<Format>)
```

## Parameters

- `transform`: The affine transformation matrix.
- `backgroundColor`: An optional background color. If you pass nil, the operation uses the doc://com.apple.accelerate/documentation/Accelerate/kvImageEdgeExtend flag to extend the edges of the image infinitely.
- `useFloat16Accumulator`: A Boolean value that specifies that the function uses faster, but lower-precision, internal arithmetic. For more information, see doc://com.apple.accelerate/documentation/Accelerate/kvImageUseFP16Accumulator.
- `destination`: The destination pixel buffer.

## See Also

### Related Documentation

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

### Applying affine transformations to images

- [transform(_:backgroundColor:destination:)](accelerate/vimage/pixelbuffer/transform(_:backgroundcolor:destination:)-4wy4q.md)
- [transform(_:backgroundColor:useFloat16Accumulator:destination:)](accelerate/vimage/pixelbuffer/transform(_:backgroundcolor:usefloat16accumulator:destination:)-1470p.md)
- [transform(_:backgroundColor:destination:)](accelerate/vimage/pixelbuffer/transform(_:backgroundcolor:destination:)-1s38.md)
- [transform(_:backgroundColor:useFloat16Accumulator:destination:)](accelerate/vimage/pixelbuffer/transform(_:backgroundcolor:usefloat16accumulator:destination:)-4w4jr.md)
- [transform(_:backgroundColor:destination:)](accelerate/vimage/pixelbuffer/transform(_:backgroundcolor:destination:)-5kxj6.md)
- [transform(_:backgroundColor:destination:)](accelerate/vimage/pixelbuffer/transform(_:backgroundcolor:destination:)-nl6g.md)
- [transform(_:backgroundColor:destination:)](accelerate/vimage/pixelbuffer/transform(_:backgroundcolor:destination:)-9ggt.md)
