---
title: kCGImageSourceShouldAllowFloat
framework: imageio
role: symbol
role_heading: Global Variable
path: imageio/kcgimagesourceshouldallowfloat
---

# kCGImageSourceShouldAllowFloat

A Boolean that indicates whether to use floating-point values in returned images.

## Declaration

```swift
let kCGImageSourceShouldAllowFloat: CFString
```

## Discussion

Discussion The value of this key is a CFBoolean. The default value is kCFBooleanFalse, which tells the image source not to use floating-point values. If the image format supports floating-point values, this key tells the image source to format CGImage types using those values. The use of extended-range floating-point values may require additional processing to render in a pleasing manner.

## See Also

### Specifying the Read Options

- [kCGImageSourceTypeIdentifierHint](imageio/kcgimagesourcetypeidentifierhint.md)
- [kCGImageSourceShouldCache](imageio/kcgimagesourceshouldcache.md)
- [kCGImageSourceShouldCacheImmediately](imageio/kcgimagesourceshouldcacheimmediately.md)
- [kCGImageSourceCreateThumbnailFromImageIfAbsent](imageio/kcgimagesourcecreatethumbnailfromimageifabsent.md)
- [kCGImageSourceCreateThumbnailFromImageAlways](imageio/kcgimagesourcecreatethumbnailfromimagealways.md)
- [kCGImageSourceThumbnailMaxPixelSize](imageio/kcgimagesourcethumbnailmaxpixelsize.md)
- [kCGImageSourceCreateThumbnailWithTransform](imageio/kcgimagesourcecreatethumbnailwithtransform.md)
- [kCGImageSourceSubsampleFactor](imageio/kcgimagesourcesubsamplefactor.md)
