WebImage.Resize(Int32, Int32, Boolean, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
調整影像的大小。
public System.Web.Helpers.WebImage Resize (int width, int height, bool preserveAspectRatio = true, bool preventEnlarge = false);
member this.Resize : int * int * bool * bool -> System.Web.Helpers.WebImage
Public Function Resize (width As Integer, height As Integer, Optional preserveAspectRatio As Boolean = true, Optional preventEnlarge As Boolean = false) As WebImage
參數
- preserveAspectRatio
- Boolean
true 表示保留影像的外觀比例;否則為 false。
- preventEnlarge
- Boolean
true 可防止放大影像;否則為 false。
傳回
調整大小的影像。