One Logo Pool Ball
CoreGraphics · IOS API REFERENCE

CGImage

class · SDK 27.1

class CGImage

Members (35)

get · iOS 26.0+

calculatedContentAverageLightLevel

TypeScript
get calculatedContentAverageLightLevel(): number
Swift declaration
var calculatedContentAverageLightLevel: Float { get }
get · iOS 26.0+

calculatedContentHeadroom

TypeScript
get calculatedContentHeadroom(): number
Swift declaration
var calculatedContentHeadroom: Float { get }
get · iOS 18.0+

containsImageSpecificToneMappingMetadata

TypeScript
get containsImageSpecificToneMappingMetadata(): boolean
Swift declaration
var containsImageSpecificToneMappingMetadata: Bool { get }
init · iOS 2.0+

init

TypeScript
static initWidthHeightBitsPerComponentBitsPerPixelBytesPerRowSpaceBitmapInfoProviderDecodeShouldInterpolateIntent(width: number, height: number, bitsPerComponent: number, bitsPerPixel: number, bytesPerRow: number, space: CGColorSpace, bitmapInfo: CGBitmapInfo, provider: CGDataProvider, decode: ("animatableData" | SDKHandle) | null, shouldInterpolate: boolean, intent: CGColorRenderingIntent): (CGImage) | null
Swift declaration
init?(width: Int, height: Int, bitsPerComponent: Int, bitsPerPixel: Int, bytesPerRow: Int, space: CGColorSpace, bitmapInfo: CGBitmapInfo, provider: CGDataProvider, decode: UnsafePointer<CGFloat>?, shouldInterpolate: Bool, intent: CGColorRenderingIntent)
method · iOS 2.0+

copy

TypeScript
copy(): (CGImage) | null
Swift declaration
func copy() -> CGImage?
method · iOS 26.0+

copyWithCalculatedHDRStats

TypeScript
copyWithCalculatedHDRStats(): (CGImage) | null
Swift declaration
func copyWithCalculatedHDRStats() -> CGImage?
method · iOS 2.0+

copy

TypeScript
copyColorSpace(space: CGColorSpace): (CGImage) | null
Swift declaration
func copy(colorSpace space: CGColorSpace) -> CGImage?
method · iOS 26.0+

copy

TypeScript
copyContentAverageLightLevel(avll: number): (CGImage) | null
Swift declaration
func copy(contentAverageLightLevel avll: Float) -> CGImage?
init · iOS 18.0+

init

TypeScript
static initHeadroomWidthHeightBitsPerComponentBitsPerPixelBytesPerRowSpaceBitmapInfoProviderDecodeShouldInterpolateIntent(headroom: number, width: number, height: number, bitsPerComponent: number, bitsPerPixel: number, bytesPerRow: number, space: CGColorSpace, bitmapInfo: CGBitmapInfo, provider: CGDataProvider, decode: ("animatableData" | SDKHandle) | null, shouldInterpolate: boolean, intent: CGColorRenderingIntent): (CGImage) | null
Swift declaration
init?(headroom: Float, width: Int, height: Int, bitsPerComponent: Int, bitsPerPixel: Int, bytesPerRow: Int, space: CGColorSpace, bitmapInfo: CGBitmapInfo, provider: CGDataProvider, decode: UnsafePointer<CGFloat>?, shouldInterpolate: Bool, intent: CGColorRenderingIntent)
method · iOS 2.0+

cropping

TypeScript
cropping(rect: { x: number; y: number; width: number; height: number }): (CGImage) | null
Swift declaration
func cropping(to rect: CGRect) -> CGImage?
init · iOS 2.0+

init

TypeScript
static initJpegDataProviderSourceDecodeShouldInterpolateIntent(source: CGDataProvider, decode: ("animatableData" | SDKHandle) | null, shouldInterpolate: boolean, intent: CGColorRenderingIntent): (CGImage) | null
Swift declaration
init?(jpegDataProviderSource source: CGDataProvider, decode: UnsafePointer<CGFloat>?, shouldInterpolate: Bool, intent: CGColorRenderingIntent)
method · iOS 2.0+

masking

TypeScript
masking(mask: CGImage): (CGImage) | null
Swift declaration
func masking(_ mask: CGImage) -> CGImage?
init · iOS 2.0+

init

TypeScript
static initPngDataProviderSourceDecodeShouldInterpolateIntent(source: CGDataProvider, decode: ("animatableData" | SDKHandle) | null, shouldInterpolate: boolean, intent: CGColorRenderingIntent): (CGImage) | null
Swift declaration
init?(pngDataProviderSource source: CGDataProvider, decode: UnsafePointer<CGFloat>?, shouldInterpolate: Bool, intent: CGColorRenderingIntent)
get · iOS 2.0+

alphaInfo

TypeScript
get alphaInfo(): CGImageAlphaInfo
Swift declaration
var alphaInfo: CGImageAlphaInfo { get }
get · iOS 2.0+

bitmapInfo

TypeScript
get bitmapInfo(): CGBitmapInfo
Swift declaration
var bitmapInfo: CGBitmapInfo { get }
get · iOS 2.0+

bitsPerComponent

TypeScript
get bitsPerComponent(): number
Swift declaration
var bitsPerComponent: Int { get }
get · iOS 2.0+

bitsPerPixel

TypeScript
get bitsPerPixel(): number
Swift declaration
var bitsPerPixel: Int { get }
get · iOS 12.0+

byteOrderInfo

TypeScript
get byteOrderInfo(): CGImageByteOrderInfo
Swift declaration
var byteOrderInfo: CGImageByteOrderInfo { get }
get · iOS 2.0+

bytesPerRow

TypeScript
get bytesPerRow(): number
Swift declaration
var bytesPerRow: Int { get }
get · iOS 2.0+

colorSpace

TypeScript
get colorSpace(): (CGColorSpace) | null
Swift declaration
var colorSpace: CGColorSpace? { get }
get · iOS 26.0+

contentAverageLightLevel

TypeScript
get contentAverageLightLevel(): number
Swift declaration
var contentAverageLightLevel: Float { get }
get · iOS 18.0+

contentHeadroom

TypeScript
get contentHeadroom(): number
Swift declaration
var contentHeadroom: Float { get }
get · iOS 2.0+

dataProvider

TypeScript
get dataProvider(): (CGDataProvider) | null
Swift declaration
var dataProvider: CGDataProvider? { get }
get · iOS 2.0+

decode

TypeScript
get decode(): ("animatableData" | SDKHandle) | null
Swift declaration
var decode: UnsafePointer<CGFloat>? { get }
get · iOS 2.0+

height

TypeScript
get height(): number
Swift declaration
var height: Int { get }
get · iOS 12.0+

pixelFormatInfo

TypeScript
get pixelFormatInfo(): CGImagePixelFormatInfo
Swift declaration
var pixelFormatInfo: CGImagePixelFormatInfo { get }
get · iOS 2.0+

renderingIntent

TypeScript
get renderingIntent(): CGColorRenderingIntent
Swift declaration
var renderingIntent: CGColorRenderingIntent { get }
get · iOS 2.0+

shouldInterpolate

TypeScript
get shouldInterpolate(): boolean
Swift declaration
var shouldInterpolate: Bool { get }
get · iOS 2.0+

typeID

TypeScript
static get typeID(): number
Swift declaration
class var typeID: CFTypeID { get }
get · iOS 9.0+

utType

TypeScript
get utType(): (_CoreFoundation_CFString) | null
Swift declaration
var utType: CFString? { get }
get · iOS 2.0+

width

TypeScript
get width(): number
Swift declaration
var width: Int { get }
get · iOS 2.0+

isMask

TypeScript
get isMask(): boolean
Swift declaration
var isMask: Bool { get }
init · iOS 2.0+

init

TypeScript
static initMaskWidthHeightBitsPerComponentBitsPerPixelBytesPerRowProviderDecodeShouldInterpolate(width: number, height: number, bitsPerComponent: number, bitsPerPixel: number, bytesPerRow: number, provider: CGDataProvider, decode: ("animatableData" | SDKHandle) | null, shouldInterpolate: boolean): (CGImage) | null
Swift declaration
init?(maskWidth width: Int, height: Int, bitsPerComponent: Int, bitsPerPixel: Int, bytesPerRow: Int, provider: CGDataProvider, decode: UnsafePointer<CGFloat>?, shouldInterpolate: Bool)
get · iOS 18.0+

shouldToneMap

TypeScript
get shouldToneMap(): boolean
Swift declaration
var shouldToneMap: Bool { get }
method · iOS 7.0+

copy

TypeScript
copyMaskingColorComponents(components: Array<number>): (CGImage) | null
Swift declaration
func copy(maskingColorComponents components: [CGFloat]) -> CGImage?

Skipped declarations

No declarations were skipped in this snapshot.

All CoreGraphics types →