---
title: bytesPerRow
framework: coregraphics
role: symbol
role_heading: Instance Property
path: coregraphics/cgcontext/bytesperrow
---

# bytesPerRow

Returns the bytes per row of a bitmap context.

## Declaration

```swift
var bytesPerRow: Int { get }
```

## See Also

### Managing a Bitmap Graphics Context

- [bitmapInfo](coregraphics/cgcontext/bitmapinfo.md)
- [alphaInfo](coregraphics/cgcontext/alphainfo.md)
- [bitsPerComponent](coregraphics/cgcontext/bitspercomponent.md)
- [bitsPerPixel](coregraphics/cgcontext/bitsperpixel.md)
- [colorSpace](coregraphics/cgcontext/colorspace.md)
- [data](coregraphics/cgcontext/data.md)
- [height](coregraphics/cgcontext/height.md)
- [width](coregraphics/cgcontext/width.md)
- [makeImage()](coregraphics/cgcontext/makeimage().md)
