UIElement.RasterizationScale Property

Definition

Gets a value that represents an extra scale factor to be used when rendering shapes, images, text, or media, usually to render at a higher resolution than normal.

public:
 property double RasterizationScale { double get(); void set(double value); };
double RasterizationScale();

void RasterizationScale(double value);
public double RasterizationScale { get; set; }
var double = uIElement.rasterizationScale;
uIElement.rasterizationScale = double;
Public Property RasterizationScale As Double

Property Value

Double

double

A value that represents the additional scale factor to use while rendering. The default is 1.0.

Remarks

The value of this property is an extra scale factor to be used when rendering shapes, images, text, or media. It is usually applied to render at a higher resolution than normal.

For example, it can be used to have a TextBlock render at a 2x scale before running a scale animation. This ensures the text is rendered crisply at its final scale value during the animation.

Important

To determine the display scale factor for an element, use the XamlRoot.RasterizationScale property instead.

Applies to