<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImage_CGImageFormat/init(bitsPerComponent:bitsPerPixel:colorSpace:bitmapInfo:renderingIntent:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:So20vImage_CGImageFormatV10AccelerateE16bitsPerComponent0eF5Pixel10colorSpace10bitmapInfo15renderingIntentABSgSi_SiSo07CGColorJ3RefaSo08CGBitmapL0VSo0o9RenderingN0Vtcfc"
  },
  "title" : "init(bitsPerComponent:bitsPerPixel:colorSpace:bitmapInfo:renderingIntent:)"
}
-->

# init(bitsPerComponent:bitsPerPixel:colorSpace:bitmapInfo:renderingIntent:)

Creates a Core Graphics image format with a color space instance and default decode array.

```
init?(bitsPerComponent: Int, bitsPerPixel: Int, colorSpace: CGColorSpace, bitmapInfo: CGBitmapInfo, renderingIntent: CGColorRenderingIntent = .defaultIntent)
```

## Parameters

`bitsPerComponent`

The number of bits that represents one channel of data in one pixel.

`bitsPerPixel`

The number of bits that represents one pixel.

`colorSpace`

A description of the position of the pixel data in the image, relative to a reference XYZ color space.

`bitmapInfo`

The component information that describes the color channels.

`renderingIntent`

A rendering intent constant that specifies how Core Graphics handles colors that aren’t within the destination color space gamut.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)