Windows Dev Center

BitmapDecoder.PixelHeight | pixelHeight property

The height of the first frame in pixels.

Syntax


var pixelHeight = bitmapDecoder.pixelHeight;

Property value

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

The height of the first frame in pixels.

Remarks

If you are working with image or pixel data that has EXIF orientation applied, use the OrientedPixelHeight property. Methods like GetPixelDataAsync return oriented pixel data. Also, the HTML img element in Windows Store apps using JavaScript, and Windows.UI.Xaml.Controls.Image respect EXIF orientation.

If you need pixel dimensions of the image as it is natively stored, use the PixelHeight property.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Graphics.Imaging
Windows::Graphics::Imaging [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Graphics.Imaging
Windows::Graphics::Imaging [C++]

Metadata

Windows.winmd

See also

BitmapDecoder

 

 

Show:
© 2015 Microsoft