SvgImageSource.RasterizePixelHeight 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 height to use for SVG rasterization operations.
public:
property double RasterizePixelHeight { double get(); void set(double value); };
double RasterizePixelHeight();
void RasterizePixelHeight(double value);
public double RasterizePixelHeight { get; set; }
var double = svgImageSource.rasterizePixelHeight;
svgImageSource.rasterizePixelHeight = double;
Public Property RasterizePixelHeight As Double
<SvgImageSource RasterizePixelHeight="double"/>
Property Value
double
The height (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.