Contents

bytesPerRow

The minimum number of bytes required to specify a scan line in each data plane.

Declaration

var bytesPerRow: Int { get }

Discussion

A scan line is a single row of pixels spanning the width of the image. If not explicitly set to another value (in init(bitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:)), this number will be figured from the width of the image, the number of bits per sample, and, if the data is in a meshed configuration, the number of samples per pixel. It can be set to another value to indicate that each row of data is aligned on word or other boundaries.

See Also

Getting Information About Images