VideoFormat.Stride Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public ReadOnly Property Stride As Integer
public int Stride { get; }

Property Value

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

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

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