BitmapScalingMode Enum
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.
Specifies which algorithm is used to scale bitmap images.
public enum class BitmapScalingMode
public enum BitmapScalingMode
type BitmapScalingMode =
Public Enum BitmapScalingMode
- Inheritance
Fields
Fant | 2 | Use very high quality Fant bitmap scaling, which is slower than all other bitmap scaling modes, but produces higher quality output. |
HighQuality | 2 | Use high quality bitmap scaling, which is slower than LowQuality mode, but produces higher quality output. The HighQuality mode is the same as the Fant mode. |
Linear | 1 | Use linear bitmap scaling, which is faster than HighQuality mode, but produces lower quality output. |
LowQuality | 1 | Use bilinear bitmap scaling, which is faster than HighQuality mode, but produces lower quality output. The LowQuality mode is the same as the Linear mode. |
NearestNeighbor | 3 | Use nearest-neighbor bitmap scaling, which provides performance benefits over LowQuality mode when the software rasterizer is used. This mode is often used to magnify a bitmap. |
Unspecified | 0 | Use the default bitmap scaling mode, which is Linear. |
Examples
The following example shows how to use the RenderOptions.SetBitmapScalingMode method to set the bitmap scale mode to LowQuality
for an image object:
// Set the bitmap scaling mode for the image to render faster.
RenderOptions.SetBitmapScalingMode(MyImage, BitmapScalingMode.LowQuality);
' Set the bitmap scaling mode for the image to render faster.
RenderOptions.SetBitmapScalingMode(MyImage, BitmapScalingMode.LowQuality)
Remarks
When animating the scale of any bitmap, the default high-quality image resampling algorithm can sometimes consume sufficient system resources to cause frame rate degradation. This frame rate degradation can cause animations to skip frames or stutter. By setting the RenderOptions.BitmapScalingMode property to LowQuality
, you can create a smoother animation when scaling a bitmap.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기