Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.19 KB

rendertargetbitmap_pixelwidth.md

File metadata and controls

25 lines (17 loc) · 1.19 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Media.Imaging.RenderTargetBitmap.PixelWidth
winrt property

Microsoft.UI.Xaml.Media.Imaging.RenderTargetBitmap.PixelWidth

-description

Gets the width of the rendered bitmap in pixels.

-property-value

The width of the rendered bitmap in pixels.

-remarks

Don't rely on this value prior to RenderAsync being called.

The maximum rendered size of a XAML visual tree is restricted by the maximum dimensions of a Microsoft DirectX texture; for more info see Resource Limits (). This resource limit can vary depending on the hardware where the app runs. Very large content that exceeds this limit might be scaled to fit. If scaling limits are applied in this way, the rendered size after scaling can be queried using the PixelWidth and PixelHeight properties. For example, a 10000 by 10000 pixel XAML visual tree might be scaled to 4096 by 4096 pixels, an example of a particular resource limit on 2D textures being applied.

-examples

-see-also