BitmapSizeOptions.PreservesAspectRatio 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會得到一個決定原始點陣圖影像長寬比是否被保留的值。
public:
property bool PreservesAspectRatio { bool get(); };
public bool PreservesAspectRatio { get; }
member this.PreservesAspectRatio : bool
Public ReadOnly Property PreservesAspectRatio As Boolean
屬性值
true若維持原始長寬比;否則,。 false
備註
若保留原始長寬比, PixelWidth 並 PixelHeight 代表點陣圖的最大大小值。 最終產生的位圖僅保證其寬度或高度與指定值相符。 若未保留長寬比,則同時使用指定的 PixelWidth 和 PixelHeight ,並拉伸位圖以使用這些值。