Instance Property

bytesPerRow

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

Declaration

@property(readonly) NSInteger bytesPerRow;

Discussion

A scan line is a single row of pixels spanning the width of the image. If not explicitly set to another value (in initWithBitmapDataPlanes: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 the Image

bitmapFormat

The format of the bitmap image representation.

NSBitmapFormat

Constants representing the various bitmap component formats.

bitsPerPixel

The number of bits allocated for each pixel in each plane of data.

bytesPerPlane

The number of bytes in each plane or channel of data.

planar

A Boolean value indicating whether the image data is in a planar configuration.

numberOfPlanes

The number of separate planes into which the image data is organized.

samplesPerPixel

The number of components for each pixel.