One Logo Pool Ball
CoreGraphics · IOS API REFERENCE

CGColorConversionInfo

class · SDK 27.1

class CGColorConversionInfo

Members (5)

method · iOS 18.0+

convert

TypeScript
convert(width: number, height: number, dst_data: SDKHandle, dst_format: CGColorBufferFormat, src_data: SDKHandle, src_format: CGColorBufferFormat, options?: (_CoreFoundation_CFDictionary) | null): boolean
Swift declaration
func convert(width: Int, height: Int, to dst_data: UnsafeMutableRawPointer, format dst_format: CGColorBufferFormat, from src_data: UnsafeRawPointer, format src_format: CGColorBufferFormat, options: CFDictionary?) -> Bool
init · iOS 10.0+

init

TypeScript
static initSrcDst(src: CGColorSpace, dst: CGColorSpace): (CGColorConversionInfo) | null
Swift declaration
init?(src: CGColorSpace, dst: CGColorSpace)
init · iOS 18.0+

init

TypeScript
static initSrcSrcHeadroomDstDstHeadroomToneMappingOptions(source: CGColorSpace, source_headroom: number, target: CGColorSpace, target_headroom: number, method: CGToneMapping, options?: (_CoreFoundation_CFDictionary) | null): { $ret: (CGColorConversionInfo) | null; $out: { "error": (_CoreFoundation_CFError) | null } }
Swift declaration
init?(src source: CGColorSpace, srcHeadroom source_headroom: Float, dst target: CGColorSpace, dstHeadroom target_headroom: Float, toneMapping method: CGToneMapping, options: CFDictionary?, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?)

Omit the output parameters from the call. The result contains $ret and $out, with error inside $out.

init · iOS 13.0+

init

TypeScript
static initOptionsSrcDstOptions(src: CGColorSpace, dst: CGColorSpace, options?: (_CoreFoundation_CFDictionary) | null): (CGColorConversionInfo) | null
Swift declaration
init?(optionsSrc src: CGColorSpace, dst: CGColorSpace, options: CFDictionary?)
get

typeID

TypeScript
static get typeID(): number
Swift declaration
class var typeID: CFTypeID { get }

Skipped declarations

No declarations were skipped in this snapshot.

All CoreGraphics types →