BitmapScalingMode BitmapScalingMode BitmapScalingMode BitmapScalingMode Enum

定義

指定使用哪種演算法來縮放點陣圖影像。Specifies which algorithm is used to scale bitmap images.

public enum class BitmapScalingMode
public enum BitmapScalingMode
type BitmapScalingMode = 
Public Enum BitmapScalingMode
繼承
BitmapScalingModeBitmapScalingModeBitmapScalingModeBitmapScalingMode

欄位

Fant Fant Fant Fant 2

您可以使用非常高品質的 Fant 點陣圖縮放,其執行速度比所有其他點陣圖縮放模式慢,但產生的輸出品質較高。Use very high quality Fant bitmap scaling, which is slower than all other bitmap scaling modes, but produces higher quality output.

HighQuality HighQuality HighQuality HighQuality 2

您可以使用高品質點陣圖縮放,其執行速度比 LowQuality 模式慢,但產生的輸出品質較高。Use high quality bitmap scaling, which is slower than LowQuality mode, but produces higher quality output. HighQuality 模式和 Fant 模式相同。The HighQuality mode is the same as the Fant mode.

Linear Linear Linear Linear 1

您可以使用線性點陣圖縮放,其執行速度比 HighQuality 模式快,但產生的輸出品質較低。Use linear bitmap scaling, which is faster than HighQuality mode, but produces lower quality output.

LowQuality LowQuality LowQuality LowQuality 1

您可以使用雙線性點陣圖縮放,其執行速度比 HighQuality 模式快,但產生的輸出品質較低。Use bilinear bitmap scaling, which is faster than HighQuality mode, but produces lower quality output. LowQuality 模式和 Linear 模式相同。The LowQuality mode is the same as the Linear mode.

NearestNeighbor NearestNeighbor NearestNeighbor NearestNeighbor 3

您可以在使用軟體光柵處理器時使用最相鄰的點陣圖縮放,它提供的效能優於 LowQuality 模式。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 Unspecified Unspecified Unspecified 0

您可以使用預設的點陣圖縮放模式,也就是 LinearUse the default bitmap scaling mode, which is Linear.

範例

下列範例示範如何設定LowQuality映像物件。The following example shows how to set the 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)

備註

建立動畫時任何點陣圖的比例,預設的高品質影像重新取樣演算法有時會耗用足夠的系統資源,導致畫面播放速率降低。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. 此畫面播放速率降低可能會造成跳過畫面或斷斷續續的動畫。This frame rate degradation can cause animations to skip frames or stutter. 藉由設定BitmapScalingMode屬性RenderOptions物件 LowQuality 縮放點陣圖時,您可以建立更順暢的動畫。By setting the BitmapScalingMode property of the RenderOptions object to LowQuality you can create a smoother animation when scaling a bitmap.

適用於

另請參閱