init
TypeScriptstatic initCgContextOptions(cgctx: _CoreGraphics_CGContext, options?: (NativeMap<CIContextOption, unknown>) | null): CIContextSwift declarationinit(cgContext cgctx: CGContext, options: [CIContextOption : Any]? = nil)class · iOS 5.0+ · SDK 27.1
class CIContextstatic initCgContextOptions(cgctx: _CoreGraphics_CGContext, options?: (NativeMap<CIContextOption, unknown>) | null): CIContextSwift declarationinit(cgContext cgctx: CGContext, options: [CIContextOption : Any]? = nil)static initEaglContext(eaglContext: _OpenGLES_EAGLContext): CIContextSwift declarationinit(eaglContext: EAGLContext)static initEaglContextOptions(eaglContext: _OpenGLES_EAGLContext, options?: (NativeMap<CIContextOption, unknown>) | null): CIContextSwift declarationinit(eaglContext: EAGLContext, options: [CIContextOption : Any]? = nil)static initMtlCommandQueue(commandQueue: SDKHandle): CIContextSwift declarationinit(mtlCommandQueue commandQueue: any MTLCommandQueue)static initMtlCommandQueueOptions(commandQueue: SDKHandle, options?: (NativeMap<CIContextOption, unknown>) | null): CIContextSwift declarationinit(mtlCommandQueue commandQueue: any MTLCommandQueue, options: [CIContextOption : Any]? = nil)static initMtlDevice(device: SDKHandle): CIContextSwift declarationinit(mtlDevice device: any MTLDevice)static initMtlDeviceOptions(device: SDKHandle, options?: (NativeMap<CIContextOption, unknown>) | null): CIContextSwift declarationinit(mtlDevice device: any MTLDevice, options: [CIContextOption : Any]? = nil)heif10Representation(image: CIImage, colorSpace: _CoreGraphics_CGColorSpace, options?: NativeMap<CIImageRepresentationOption, unknown>): ArrayBufferSwift declarationfunc heif10Representation(of image: CIImage, colorSpace: CGColorSpace, options: [CIImageRepresentationOption : Any] = [:]) throws -> DataheifRepresentation(image: CIImage, format: CIFormat, colorSpace: _CoreGraphics_CGColorSpace, options?: NativeMap<CIImageRepresentationOption, unknown>): (ArrayBuffer) | nullSwift declarationfunc heifRepresentation(of image: CIImage, format: CIFormat, colorSpace: CGColorSpace, options: [CIImageRepresentationOption : Any] = [:]) -> Data?jpegRepresentation(image: CIImage, colorSpace: _CoreGraphics_CGColorSpace, options?: NativeMap<CIImageRepresentationOption, unknown>): (ArrayBuffer) | nullSwift declarationfunc jpegRepresentation(of image: CIImage, colorSpace: CGColorSpace, options: [CIImageRepresentationOption : Any] = [:]) -> Data?openEXRRepresentation(image: CIImage, options?: NativeMap<CIImageRepresentationOption, unknown>): ArrayBufferSwift declarationfunc openEXRRepresentation(of image: CIImage, options: [CIImageRepresentationOption : Any] = [:]) throws -> DatapngRepresentation(image: CIImage, format: CIFormat, colorSpace: _CoreGraphics_CGColorSpace, options?: NativeMap<CIImageRepresentationOption, unknown>): (ArrayBuffer) | nullSwift declarationfunc pngRepresentation(of image: CIImage, format: CIFormat, colorSpace: CGColorSpace, options: [CIImageRepresentationOption : Any] = [:]) -> Data?tiffRepresentation(image: CIImage, format: CIFormat, colorSpace: _CoreGraphics_CGColorSpace, options?: NativeMap<CIImageRepresentationOption, unknown>): (ArrayBuffer) | nullSwift declarationfunc tiffRepresentation(of image: CIImage, format: CIFormat, colorSpace: CGColorSpace, options: [CIImageRepresentationOption : Any] = [:]) -> Data?calculateHDRStatsFor(cgimage: _CoreGraphics_CGImage): _CoreGraphics_CGImageSwift declarationfunc calculateHDRStats(for cgimage: CGImage) -> CGImagecalculateHDRStatsFor85938(buffer: _CoreVideo_CVBuffer): voidSwift declarationfunc calculateHDRStats(for buffer: CVPixelBuffer)calculateHDRStatsFor62120(surface: _IOSurface_IOSurfaceRef): voidSwift declarationfunc calculateHDRStats(for surface: IOSurfaceRef)calculateHDRStatsFor78106(image: CIImage): (CIImage) | nullSwift declarationfunc calculateHDRStats(for image: CIImage) -> CIImage?clearCaches(): voidSwift declarationfunc clearCaches()createCGImageFrom(image: CIImage, fromRect: { x: number; y: number; width: number; height: number }): (_CoreGraphics_CGImage) | nullSwift declarationfunc createCGImage(_ image: CIImage, from fromRect: CGRect) -> CGImage?createCGImageFromFormatColorSpace(image: CIImage, fromRect: { x: number; y: number; width: number; height: number }, format: CIFormat, colorSpace?: (_CoreGraphics_CGColorSpace) | null): (_CoreGraphics_CGImage) | nullSwift declarationfunc createCGImage(_ image: CIImage, from fromRect: CGRect, format: CIFormat, colorSpace: CGColorSpace?) -> CGImage?createCGImageFromFormatColorSpaceDeferred(image: CIImage, fromRect: { x: number; y: number; width: number; height: number }, format: CIFormat, colorSpace: (_CoreGraphics_CGColorSpace) | null, deferred: boolean): (_CoreGraphics_CGImage) | nullSwift declarationfunc createCGImage(_ image: CIImage, from fromRect: CGRect, format: CIFormat, colorSpace: CGColorSpace?, deferred: Bool) -> CGImage?createCGImageFromFormatColorSpaceDeferredCalculateHDRStats(image: CIImage, fromRect: { x: number; y: number; width: number; height: number }, format: CIFormat, colorSpace: (_CoreGraphics_CGColorSpace) | null, deferred: boolean, calculateHDRStats: boolean): (_CoreGraphics_CGImage) | nullSwift declarationfunc createCGImage(_ image: CIImage, from fromRect: CGRect, format: CIFormat, colorSpace: CGColorSpace?, deferred: Bool, calculateHDRStats: Bool) -> CGImage?depthBlurEffectFilterForDisparityImagePortraitEffectsMatteHairSemanticSegmentationGlassesMatteGainMapOrientationOptions(image: CIImage, disparityImage: CIImage, portraitEffectsMatte: (CIImage) | null, hairSemanticSegmentation: (CIImage) | null, glassesMatte: (CIImage) | null, gainMap: (CIImage) | null, orientation: _ImageIO_CGImagePropertyOrientation, options?: (NativeMap<unknown, unknown>) | null): (CIFilter) | nullSwift declarationfunc depthBlurEffectFilter(for image: CIImage, disparityImage: CIImage, portraitEffectsMatte: CIImage?, hairSemanticSegmentation: CIImage?, glassesMatte: CIImage?, gainMap: CIImage?, orientation: CGImagePropertyOrientation, options: [AnyHashable : Any]? = nil) -> CIFilter?depthBlurEffectFilterForDisparityImagePortraitEffectsMatteHairSemanticSegmentationOrientationOptions(image: CIImage, disparityImage: CIImage, portraitEffectsMatte: (CIImage) | null, hairSemanticSegmentation: (CIImage) | null, orientation: _ImageIO_CGImagePropertyOrientation, options?: (NativeMap<unknown, unknown>) | null): (CIFilter) | nullSwift declarationfunc depthBlurEffectFilter(for image: CIImage, disparityImage: CIImage, portraitEffectsMatte: CIImage?, hairSemanticSegmentation: CIImage?, orientation: CGImagePropertyOrientation, options: [AnyHashable : Any]? = nil) -> CIFilter?depthBlurEffectFilterForDisparityImagePortraitEffectsMatteOrientationOptions(image: CIImage, disparityImage: CIImage, portraitEffectsMatte: (CIImage) | null, orientation: _ImageIO_CGImagePropertyOrientation, options?: (NativeMap<unknown, unknown>) | null): (CIFilter) | nullSwift declarationfunc depthBlurEffectFilter(for image: CIImage, disparityImage: CIImage, portraitEffectsMatte: CIImage?, orientation: CGImagePropertyOrientation, options: [AnyHashable : Any]? = nil) -> CIFilter?depthBlurEffectFilterForImageDataOptions(data: ArrayBuffer, options?: (NativeMap<unknown, unknown>) | null): (CIFilter) | nullSwift declarationfunc depthBlurEffectFilter(forImageData data: Data, options: [AnyHashable : Any]? = nil) -> CIFilter?depthBlurEffectFilterForImageURLOptions(url: string, options?: (NativeMap<unknown, unknown>) | null): (CIFilter) | nullSwift declarationfunc depthBlurEffectFilter(forImageURL url: URL, options: [AnyHashable : Any]? = nil) -> CIFilter?draw(image: CIImage, inRect: { x: number; y: number; width: number; height: number }, fromRect: { x: number; y: number; width: number; height: number }): voidSwift declarationfunc draw(_ image: CIImage, in inRect: CGRect, from fromRect: CGRect)estimateRender(image: CIImage, fromRect: { x: number; y: number; width: number; height: number }, destination: CIRenderDestination, atPoint: { x: number; y: number }): CIRenderTaskSwift declarationfunc estimateRender(_ image: CIImage, from fromRect: CGRect, to destination: CIRenderDestination, at atPoint: CGPoint) throws -> CIRenderTaskstatic init(): CIContextSwift declarationinit()static initOptions(options?: (NativeMap<CIContextOption, unknown>) | null): CIContextSwift declarationinit(options: [CIContextOption : Any]? = nil)inputImageMaximumSize(): { width: number; height: number }Swift declarationfunc inputImageMaximumSize() -> CGSizeoutputImageMaximumSize(): { width: number; height: number }Swift declarationfunc outputImageMaximumSize() -> CGSizeprepareRender(image: CIImage, fromRect: { x: number; y: number; width: number; height: number }, destination: CIRenderDestination, atPoint: { x: number; y: number }): voidSwift declarationfunc prepareRender(_ image: CIImage, from fromRect: CGRect, to destination: CIRenderDestination, at atPoint: CGPoint) throwsrenderToBitmapRowBytesBoundsFormatColorSpace(image: CIImage, data: SDKHandle, rowBytes: number, bounds: { x: number; y: number; width: number; height: number }, format: CIFormat, colorSpace?: (_CoreGraphics_CGColorSpace) | null): voidSwift declarationfunc render(_ image: CIImage, toBitmap data: UnsafeMutableRawPointer, rowBytes: Int, bounds: CGRect, format: CIFormat, colorSpace: CGColorSpace?)renderTo(image: CIImage, buffer: _CoreVideo_CVBuffer): voidSwift declarationfunc render(_ image: CIImage, to buffer: CVPixelBuffer)renderToBoundsColorSpace(image: CIImage, buffer: _CoreVideo_CVBuffer, bounds: { x: number; y: number; width: number; height: number }, colorSpace?: (_CoreGraphics_CGColorSpace) | null): voidSwift declarationfunc render(_ image: CIImage, to buffer: CVPixelBuffer, bounds: CGRect, colorSpace: CGColorSpace?)renderToBoundsColorSpace89905(image: CIImage, surface: _IOSurface_IOSurfaceRef, bounds: { x: number; y: number; width: number; height: number }, colorSpace?: (_CoreGraphics_CGColorSpace) | null): voidSwift declarationfunc render(_ image: CIImage, to surface: IOSurfaceRef, bounds: CGRect, colorSpace: CGColorSpace?)renderToCommandBufferBoundsColorSpace(image: CIImage, texture: SDKHandle, commandBuffer: (SDKHandle) | null, bounds: { x: number; y: number; width: number; height: number }, colorSpace: _CoreGraphics_CGColorSpace): voidSwift declarationfunc render(_ image: CIImage, to texture: any MTLTexture, commandBuffer: (any MTLCommandBuffer)?, bounds: CGRect, colorSpace: CGColorSpace)startTaskToClear(destination: CIRenderDestination): CIRenderTaskSwift declarationfunc startTask(toClear destination: CIRenderDestination) throws -> CIRenderTaskstartTaskToRenderFromToAt(image: CIImage, fromRect: { x: number; y: number; width: number; height: number }, destination: CIRenderDestination, atPoint: { x: number; y: number }): CIRenderTaskSwift declarationfunc startTask(toRender image: CIImage, from fromRect: CGRect, to destination: CIRenderDestination, at atPoint: CGPoint) throws -> CIRenderTaskstartTaskToRenderTo(image: CIImage, destination: CIRenderDestination): CIRenderTaskSwift declarationfunc startTask(toRender image: CIImage, to destination: CIRenderDestination) throws -> CIRenderTaskwriteHEIF10Representation(image: CIImage, url: string, colorSpace: _CoreGraphics_CGColorSpace, options?: NativeMap<CIImageRepresentationOption, unknown>): voidSwift declarationfunc writeHEIF10Representation(of image: CIImage, to url: URL, colorSpace: CGColorSpace, options: [CIImageRepresentationOption : Any] = [:]) throwswriteHEIFRepresentation(image: CIImage, url: string, format: CIFormat, colorSpace: _CoreGraphics_CGColorSpace, options?: NativeMap<CIImageRepresentationOption, unknown>): voidSwift declarationfunc writeHEIFRepresentation(of image: CIImage, to url: URL, format: CIFormat, colorSpace: CGColorSpace, options: [CIImageRepresentationOption : Any] = [:]) throwswriteJPEGRepresentation(image: CIImage, url: string, colorSpace: _CoreGraphics_CGColorSpace, options?: NativeMap<CIImageRepresentationOption, unknown>): voidSwift declarationfunc writeJPEGRepresentation(of image: CIImage, to url: URL, colorSpace: CGColorSpace, options: [CIImageRepresentationOption : Any] = [:]) throwswriteOpenEXRRepresentation(image: CIImage, url: string, options?: NativeMap<CIImageRepresentationOption, unknown>): voidSwift declarationfunc writeOpenEXRRepresentation(of image: CIImage, to url: URL, options: [CIImageRepresentationOption : Any] = [:]) throwswritePNGRepresentation(image: CIImage, url: string, format: CIFormat, colorSpace: _CoreGraphics_CGColorSpace, options?: NativeMap<CIImageRepresentationOption, unknown>): voidSwift declarationfunc writePNGRepresentation(of image: CIImage, to url: URL, format: CIFormat, colorSpace: CGColorSpace, options: [CIImageRepresentationOption : Any] = [:]) throwswriteTIFFRepresentation(image: CIImage, url: string, format: CIFormat, colorSpace: _CoreGraphics_CGColorSpace, options?: NativeMap<CIImageRepresentationOption, unknown>): voidSwift declarationfunc writeTIFFRepresentation(of image: CIImage, to url: URL, format: CIFormat, colorSpace: CGColorSpace, options: [CIImageRepresentationOption : Any] = [:]) throwsget workingColorSpace(): (_CoreGraphics_CGColorSpace) | nullSwift declarationvar workingColorSpace: CGColorSpace? { get }get workingFormat(): CIFormatSwift declarationvar workingFormat: CIFormat { get }No declarations were skipped in this snapshot.