SvgImageSource.RasterizePixelWidth Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the width to use for SVG rasterization operations.
public:
property double RasterizePixelWidth { double get(); void set(double value); };
double RasterizePixelWidth();
void RasterizePixelWidth(double value);
public double RasterizePixelWidth { get; set; }
var double = svgImageSource.rasterizePixelWidth;
svgImageSource.rasterizePixelWidth = double;
Public Property RasterizePixelWidth As Double
<SvgImageSource RasterizePixelWidth="double"/>
Property Value
double
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.