CGBitmapContext.BytesPerRow Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the number of bytes per row for this
CGBitmapContext object, or 0 if this
object is not a bitmap context.
public nint BytesPerRow { get; }
member this.BytesPerRow : nint
Property Value
Remarks
Number of bytes per row, a number greather or equal that the number of bytes used by a row of pixels.
Typically is the width multiplied by the number of bytes per pixel, with some extra padding. This is called the image stride.
While this does not affect the rendering of the image, it can improve the performance of image rendering by aligning the first pixel to the natural processor alignment.