---
title: "overwriteChannels(withScalar:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/vimage/pixelbuffer/overwritechannels(withscalar:)-1wm1o"
---

# overwriteChannels(withScalar:)

Overwrites the pixels of the pixel buffer with the provided 32-bit scalar value.

## Declaration

```swift
func overwriteChannels(withScalar scalar: Pixel_F)
```

## Parameters

- `scalar`: The value that the function writes to the channels.

## See Also

### Overwriting Channels

- [overwriteChannels(withScalar:)](accelerate/vimage/pixelbuffer/overwritechannels(withscalar:)-3zb93.md)
- [overwriteChannels(withScalar:)](accelerate/vimage/pixelbuffer/overwritechannels(withscalar:)-1hrrg.md)
- [overwriteChannels(_:withScalar:destination:)](accelerate/vimage/pixelbuffer/overwritechannels(_:withscalar:destination:)-57ov2.md)
- [overwriteChannels(_:withScalar:destination:)](accelerate/vimage/pixelbuffer/overwritechannels(_:withscalar:destination:)-ev8q.md)
- [overwriteChannels(_:withPixel:destination:)](accelerate/vimage/pixelbuffer/overwritechannels(_:withpixel:destination:)-6fab6.md)
- [overwriteChannels(_:withPixel:destination:)](accelerate/vimage/pixelbuffer/overwritechannels(_:withpixel:destination:)-6zw3o.md)
- [overwriteChannels(_:withPixel:destination:)](accelerate/vimage/pixelbuffer/overwritechannels(_:withpixel:destination:)-6pbz8.md)
- [overwriteChannels(_:withPlanarBuffer:destination:)](accelerate/vimage/pixelbuffer/overwritechannels(_:withplanarbuffer:destination:)-9jbky.md)
- [overwriteChannels(_:withPlanarBuffer:destination:)](accelerate/vimage/pixelbuffer/overwritechannels(_:withplanarbuffer:destination:)-hiw0.md)
- [overwriteChannels(_:withInterleavedBuffer:destination:)](accelerate/vimage/pixelbuffer/overwritechannels(_:withinterleavedbuffer:destination:)-74hah.md)
- [overwriteChannels(_:withInterleavedBuffer:destination:)](accelerate/vimage/pixelbuffer/overwritechannels(_:withinterleavedbuffer:destination:)-8xkd1.md)
