-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Media.Imaging.SvgImageSource.RasterizePixelWidth |
winrt property |
Gets or sets the width to use for SVG rasterization operations.
<SvgImageSource RasterizePixelWidth="double"/>
The width (in logical pixels) to use for SVG decoding operations. The default is NaN.
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.