Stride Property

VideoFormat.Stride Property


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

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

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.


Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2015 Microsoft