UIElement.RasterizationScale 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 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
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.