BitmapSource.PixelWidth Property

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

Gets the width of the bitmap in pixels.

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

Syntax

Public ReadOnly Property PixelWidth As Integer
public int PixelWidth { get; }

Property Value

Type: System..::.Int32
The width of the bitmap in pixels.

Remarks

Dependency property identifier field: PixelWidthProperty

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

BitmapSource Class

System.Windows.Media.Imaging Namespace