BitmapImage::DecodePixelHeight Property
.NET Framework (current version)
Gets or sets the height, in pixels, that the image is decoded to.
Assembly: PresentationCore (in PresentationCore.dll)
Property Value
Type: System::Int32The height, in pixels, that the image is decoded to. The default value is 0.
If DecodePixelWidth is also set, the aspect ratio of the bitmap is ignored. If DecodePixelWidth is not set, the aspect ratio remains the same.
The JPEG and Portable Network Graphics (PNG) codecs natively decode the image to the specified size; other codecs decode the image at its original size and scale the image to the desired size.
Identifier field | |
Metadata properties set to true | None |
.NET Framework
Available since 3.0
Windows Phone Silverlight
Available since 8.0
Available since 3.0
Windows Phone Silverlight
Available since 8.0
Show: