title: Combining CGBitmapInfo and CGImageAlphaInfo in Swift
body: <p>I'm rewriting Apple's <code>UIImageEffects</code> sample code from Objective-C to Swift and I have a question regarding the following line:</p>
  
  <pre><code>vImage_CGImageFormat format = {
      .bitsPerComponent = 8,
      .bitsPerPixel = 32,
      .colorSpace = NULL,
      .bitmapInfo = kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Little,
      .version = 0,
      .decode = NULL,
      .renderingIntent = kCGRenderingIntentDefault
  };
  </code></pre>
  
  <p>Here is my version in Swift:</p>
  
  <pre><code>let bitmapInfo = CGBitmapInfo(rawValue: CGImageAlphaInfo.PremultipliedFirst.rawValue | CGBitmapInfo.ByteOrder32Little.rawValue)
  let format = vImage_CGImageFormat(bitsPerComponent: 8, bitsPerPixel: 32, colorSpace: nil, bitmapInfo: bitmapInfo, version: 0, decode: nil, renderingIntent: .RenderingIntentDefault)
  </code></pre>
  
  <p>Is this the simplest way to create <code>bitmapInfo</code> in Swift?</p>