WebImage.Save(String, String, 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.
Enregistre l'image à l'aide du nom de fichier spécifié.
public System.Web.Helpers.WebImage Save(string filePath = default, string imageFormat = default, bool forceCorrectExtension = true);
member this.Save : string * string * bool -> System.Web.Helpers.WebImage
Public Function Save (Optional filePath As String = null, Optional imageFormat As String = null, Optional forceCorrectExtension As Boolean = true) As WebImage
Paramètres
- filePath
- String
Emplacement dans lequel enregistrer l'image.
- imageFormat
- String
Format d'enregistrement à utiliser pour le fichier image, tel que « gif » ou « png ».
- forceCorrectExtension
- Boolean
true pour forcer l’utilisation de l’extension de nom de fichier correcte pour le format spécifié dans imageFormat; sinon, false. S’il existe une incompatibilité entre le type de fichier et l’extension de nom de fichier spécifiée, et si forceCorrectExtension a la valeur true, l’extension correcte est ajoutée au nom du fichier. Par exemple, un fichier PNG nommé Photograph.txt est enregistré sous le nom Photograph.txt.png.
Retours
L’image.