RenderOptions.BitmapScalingMode Attached Property

Definition

Gets or sets the BitmapScalingMode for a given DependencyObject.

C#
see GetBitmapScalingMode, and SetBitmapScalingMode

Remarks

Use the BitmapScalingMode property on a UIElement or DrawingGroup descendant that is animating a bitmap.

When animating the scale of any bitmap, the default high-quality image re-sampling algorithm can sometimes consume sufficient system resources to cause frame rate degradation, effectively causing animations to stutter. By setting the BitmapScalingMode property to BitmapScalingMode.LowQuality, you can create a smoother animation when scaling a bitmap.

To access this property in code, use the GetBitmapScalingMode and SetBitmapScalingMode methods.

Dependency Property Information

Item Value
Identifier field BitmapScalingModeProperty
Metadata properties set to true None

Applies to

Ürün Sürümler
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also