Stride Property
Collapse the table of content
Expand the table of content

VideoFormat.Stride Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the array stride that is used in the video format.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

'Declaration
Public ReadOnly Property Stride As Integer

Property Value

Type: System.Int32
The array stride that is used in the video format.

In video, the stride represents the width, in bytes, of a row of the image. This value can be negative if the frame is rotated.

A stride with a negative value indicates that the image is upside down. You can flip the array in OnSample to get an image which is right-side up.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft