Share via


SvgImageSource.RasterizePixelHeight Property

Definition

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

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.

Applies to