Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.48 KB

svgimagesource_rasterizepixelwidth.md

File metadata and controls

40 lines (30 loc) · 1.48 KB
-api-id -api-type
P:Windows.UI.Xaml.Media.Imaging.SvgImageSource.RasterizePixelWidth
winrt property

Windows.UI.Xaml.Media.Imaging.SvgImageSource.RasterizePixelWidth

-description

Gets or sets the width to use for SVG rasterization operations.

-xaml-syntax

<SvgImageSource RasterizePixelWidth="double"/>

-property-value

The width (in logical pixels) to use for SVG decoding operations. The default is NaN.

-remarks

Since the units are logical pixels, the SVG is decoded using values that are pre-factored for the logical resolution, and it potentially won't use as much memory.

If RasterizePixelHeight and RasterizePixelWidth are NaN, then the application's layout will determine the decode size so that the SvgImageSource fits in the available space.

Note

In C#, you can obtain NaN from Double.NaN.

In C++, you can obtain NaN by using the NAN macro or std::numeric_limits<double>::quiet_NaN().

Do not use the == operator to test for NaN.

In C#, use Double.IsNaN() to test for NaN.

In C++, use isnan() to test for NaN.