BitmapSizeOptions.FromHeight(Int32) Methode

Definition

Initialisiert eine Instanz von BitmapSizeOptions, womit das Seitenverhältnis des Quellbitmaps beibehalten und die anfängliche PixelHeight angegeben wird.

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

Gibt die Höhe der resultierenden Bitmap (in Pixeln) an.

Gibt zurück

Eine Instanz von BitmapSizeOptions.

Ausnahmen

Tritt auf, wenn pixelHeight kleiner als 0 (null) ist.

Hinweise

Die zurückgegebene BitmapSizeOptions Eigenschaft ist Rotation auf Rotate0festgelegt, auf PreservesAspectRatio festgelegt, auf truefestgelegt, PixelHeight auf und pixelHeightPixelWidth auf null festgelegt.

Gilt für: