WebImage.Resize(Int32, Int32, Boolean, Boolean) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Redimensionne une image.
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
Paramètres
- preserveAspectRatio
- Boolean
true pour conserver les proportions de l’image ; sinon, false.
- preventEnlarge
- Boolean
true pour empêcher l’agrandissement de l’image; sinon, false.
Retours
Image redimensionnée.