RenderOptions.SetBitmapScalingMode メソッド

定義

指定した依存関係オブジェクトの BitmapScalingMode 添付プロパティの値を設定します。

public:
 static void SetBitmapScalingMode(System::Windows::DependencyObject ^ target, System::Windows::Media::BitmapScalingMode bitmapScalingMode);
public static void SetBitmapScalingMode (System.Windows.DependencyObject target, System.Windows.Media.BitmapScalingMode bitmapScalingMode);
static member SetBitmapScalingMode : System.Windows.DependencyObject * System.Windows.Media.BitmapScalingMode -> unit
Public Shared Sub SetBitmapScalingMode (target As DependencyObject, bitmapScalingMode As BitmapScalingMode)

パラメーター

target
DependencyObject

BitmapScalingMode プロパティの値の設定対象となる UIElement 派生クラスまたは DrawingGroup 派生クラス。

bitmapScalingMode
BitmapScalingMode

プロパティの新しい設定値。

例外

指定された targetnull です。

次の例は、オブジェクトの BitmapScalingMode 設定方法を Image 示しています。

// 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)

注釈

ビットマップをSetBitmapScalingModeアニメーション化している、またはDrawingGroup子孫のUIElementメソッドを使用します。

ビットマップのスケーリングをアニメーション化する場合、既定の高品質イメージの再サンプリング アルゴリズムは、フレーム レートを低下させるほどシステム リソースを消費する場合があり、実際にはアニメーションの動きが滑らかでなくなることがあります。 RenderOptions オブジェクトの BitmapScalingMode プロパティを LowQuality に設定することで、ビットマップをスケーリングするときに、より滑らかなアニメーションを作成できます。

適用対象

こちらもご覧ください