Freigeben über


PixelWidth

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

Gets the width of the decoded bitmap in pixels.

value = object.PixelWidth

Property Value

Type: int

The width of the source of the image, in pixels.

This property is read-only. There is no default.

Managed Equivalent

PixelWidth

Remarks

This property is only available for a BitmapImage that has been downloaded or retrieved from the cache, and decoded. You should read this property only from within an ImageOpened handler.

Applies To

BitmapImage

Version Information

Silverlight 3