Type Method

preferredAlignmentAndRowBytes(width:height:bitsPerPixel:)

Returns the preferred alignment and row bytes for a specified size and bits per pixel.

Declaration

static func preferredAlignmentAndRowBytes(width: Int, height: Int, bitsPerPixel: UInt32) throws -> (alignment: Int, rowBytes: Int)