DpiHelper.ScaleLogicalImageForDeviceSize Yöntem

Tanım

Belirtilen scalingMode kullanarak bir WPF görüntüsünü belirtilen boyutla ölçeklendirin.

public:
 static System::Windows::Media::ImageSource ^ ScaleLogicalImageForDeviceSize(System::Windows::Media::ImageSource ^ image, System::Windows::Size deviceImageSize, System::Windows::Media::BitmapScalingMode scalingMode);
public static System.Windows.Media.ImageSource ScaleLogicalImageForDeviceSize (System.Windows.Media.ImageSource image, System.Windows.Size deviceImageSize, System.Windows.Media.BitmapScalingMode scalingMode);
static member ScaleLogicalImageForDeviceSize : System.Windows.Media.ImageSource * System.Windows.Size * System.Windows.Media.BitmapScalingMode -> System.Windows.Media.ImageSource
Public Function ScaleLogicalImageForDeviceSize (image As ImageSource, deviceImageSize As Size, scalingMode As BitmapScalingMode) As ImageSource

Parametreler

image
ImageSource

Ölçeklendirilen resim.

deviceImageSize
Size

Sonuç görüntü boyutu.

scalingMode
BitmapScalingMode

Ölçeklendirme modu.

Döndürülenler

ImageSource

Ölçekli görüntü.

Şunlara uygulanır