Bagikan melalui


BitmapSizeOptions.FromHeight(Int32) Metode

Definisi

Menginisialisasi instans BitmapSizeOptions yang mempertahankan rasio aspek bitmap sumber dan menentukan awal PixelHeight.

public:
 static System::Windows::Media::Imaging::BitmapSizeOptions ^ FromHeight(int pixelHeight);
public static System.Windows.Media.Imaging.BitmapSizeOptions FromHeight(int pixelHeight);
static member FromHeight : int -> System.Windows.Media.Imaging.BitmapSizeOptions
Public Shared Function FromHeight (pixelHeight As Integer) As BitmapSizeOptions

Parameter

pixelHeight
Int32

Tinggi, dalam piksel, dari bitmap yang dihasilkan.

Mengembalikan

Instans BitmapSizeOptions.

Pengecualian

Terjadi ketika pixelHeight kurang dari nol.

Keterangan

Properti yang dikembalikan BitmapSizeOptions akan diatur ke , PreservesAspectRatio diatur ke Rotate0true, PixelHeight diatur ke nilai pixelHeight, dan PixelWidth diatur ke nolRotation.

Berlaku untuk