<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGColorBufferFormat/init(version:bitmapInfo:bitsPerComponent:bitsPerPixel:bytesPerRow:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "s:So19CGColorBufferFormata7version10bitmapInfo16bitsPerComponent0gH5Pixel05bytesH3RowABs6UInt32V_So08CGBitmapF0VS3itcfc"
  },
  "title" : "init(version:bitmapInfo:bitsPerComponent:bitsPerPixel:bytesPerRow:)"
}
-->

# init(version:bitmapInfo:bitsPerComponent:bitsPerPixel:bytesPerRow:)

```
init(version: UInt32, bitmapInfo: CGBitmapInfo, bitsPerComponent: Int, bitsPerPixel: Int, bytesPerRow: Int)
```

---

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)