---
title: kvImageGetTempBufferSize
framework: accelerate
role: symbol
role_heading: Global Variable
path: accelerate/kvimagegettempbuffersize
---

# kvImageGetTempBufferSize

A flag that returns the minimum temporary buffer size for the operation, given the parameters provided.

## Declaration

```swift
var kvImageGetTempBufferSize: Int { get }
```

## Mentioned in

Applying geometric transforms to images

## Discussion

Discussion When you set this flag, the function returns the number of bytes required for the temporary buffer instead of performing the operation. A negative value indicates an error, and if the function does not accept a temporary buffer, zero is returned.

## See Also

### Constants

- [vImage.Options](accelerate/vimage/options.md)
- [kvImageNoFlags](accelerate/kvimagenoflags.md)
- [kvImageLeaveAlphaUnchanged](accelerate/kvimageleavealphaunchanged.md)
- [kvImageDoNotTile](accelerate/kvimagedonottile.md)
- [kvImageHighQualityResampling](accelerate/kvimagehighqualityresampling.md)
- [kvImagePrintDiagnosticsToConsole](accelerate/kvimageprintdiagnosticstoconsole.md)
- [kvImageNoAllocate](accelerate/kvimagenoallocate.md)
- [kvImageHDRContent](accelerate/kvimagehdrcontent.md)
- [kvImageDoNotClamp](accelerate/kvimagedonotclamp.md)
- [kvImageUseFP16Accumulator](accelerate/kvimageusefp16accumulator.md)
