Edit

Share via


vImageBuffer Struct

Definition

Structure used to represent image data.

public struct vImageBuffer
type vImageBuffer = struct
Inheritance
vImageBuffer

Remarks

This structure is used to describe a block of image data.   The image data is stored in the Data property with the Width and Height properties describing how many pixels the image has on each dimension.

The BytesPerRow property describes how many bytes are used on each row of pixels.   This is often referred to as the stride of the image.   It does not necessarily have to match the width in pixels, it can often be set to a different value to ensure that each image row starts in an aligned memory address (this is typically done to improve performance as CPUs are able to perform aligned fetches from memory faster than unaligned ones).

Properties

BytesPerRow

Bytes per row in the image.   This is the stride of the row.

Data

Points to the image data.

Height

The height of the image in pixels.

Width

The width of the image in pixels.

Applies to