CGContext
public func draw(_ image: CoreGraphics.CGImage, in rect: CoreFoundation.CGRect, by toneMapping: CoreGraphics.CGToneMapping = .default, options: CoreFoundation.CFDictionary?) -> Swift.Bool
extern CGColorSpaceRef _Nonnull CGColorSpaceCopyBaseColorSpace(CGColorSpaceRef _Nonnull space)
extern CGColorConversionInfoRef _Nullable CGColorConversionInfoCreateForToneMapping(CGColorSpaceRef _Nonnull from, float source_headroom, CGColorSpaceRef _Nonnull to, float target_headroom, CGToneMapping method, CFDictionaryRef _Nullable options, CFErrorRef _Nullable * _Nullable error)
extern bool CGColorConversionInfoConvertData(CGColorConversionInfoRef _Nonnull info, size_t width, size_t height, void * _Nonnull dst_data, CGColorBufferFormat dst_format, const void * _Nonnull src_data, CGColorBufferFormat src_format, CFDictionaryRef _Nullable options)
extern bool CGContextSetEDRTargetHeadroom(CGContextRef _Nonnull c, float headroom)
extern float CGContextGetEDRTargetHeadroom(CGContextRef _Nonnull c)
extern bool CGContextDrawImageApplyingToneMapping(CGContextRef _Nonnull c, CGRect r, CGImageRef _Nonnull image, CGToneMapping method, CFDictionaryRef _Nullable options)
extern CGImageRef _Nullable CGImageCreateWithContentHeadroom(float headroom, size_t width, size_t height, size_t bitsPerComponent, size_t bitsPerPixel, size_t bytesPerRow, CGColorSpaceRef _Nullable space, CGBitmapInfo bitmapInfo, CGDataProviderRef _Nullable provider, const CGFloat * _Nullable decode, bool shouldInterpolate, CGColorRenderingIntent intent)
extern CGImageRef _Nullable CGImageCreateCopyWithContentHeadroom(float headroom, CGImageRef _Nullable image)
extern float CGImageGetContentHeadroom(CGImageRef _Nullable image)
extern bool CGImageShouldToneMap(CGImageRef _Nullable image)
extern bool CGImageContainsImageSpecificToneMappingMetadata(CGImageRef _Nullable image)