WebImage.AddImageWatermark 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.
Surcharges
| AddImageWatermark(String, Int32, Int32, String, String, Int32, Int32) |
Ajoute une image en filigrane à l'aide du chemin d'accès à cette image. |
| AddImageWatermark(WebImage, Int32, Int32, String, String, Int32, Int32) |
Ajoute une image en filigrane à l'aide de l'objet image spécifié. |
AddImageWatermark(String, Int32, Int32, String, String, Int32, Int32)
Ajoute une image en filigrane à l'aide du chemin d'accès à cette image.
public System.Web.Helpers.WebImage AddImageWatermark(string watermarkImageFilePath, int width = 0, int height = 0, string horizontalAlign = "Right", string verticalAlign = "Bottom", int opacity = 100, int padding = 5);
member this.AddImageWatermark : string * int * int * string * string * int * int -> System.Web.Helpers.WebImage
Public Function AddImageWatermark (watermarkImageFilePath As String, Optional width As Integer = 0, Optional height As Integer = 0, Optional horizontalAlign As String = "Right", Optional verticalAlign As String = "Bottom", Optional opacity As Integer = 100, Optional padding As Integer = 5) As WebImage
Paramètres
- watermarkImageFilePath
- String
Chemin d'accès du fichier contenant l'image en filigrane.
- width
- Int32
Largeur, en pixels, de l'image en filigrane.
- height
- Int32
Hauteur, en pixels, de l'image en filigrane.
- horizontalAlign
- String
Alignement horizontal de l'image en filigrane. Les valeurs possibles sont « Left », « Right » ou « Center ».
- verticalAlign
- String
Alignement vertical de l'image en filigrane. Les valeurs possibles sont « Top », « Middle » ou « Bottom ».
- opacity
- Int32
Opacité de l'image en filigrane, spécifiée sous forme de valeur comprise entre 0 et 100.
- padding
- Int32
Taille, en pixels, du remplissage autour de l'image en filigrane.
Retours
Image en filigrane.
S’applique à
AddImageWatermark(WebImage, Int32, Int32, String, String, Int32, Int32)
Ajoute une image en filigrane à l'aide de l'objet image spécifié.
public System.Web.Helpers.WebImage AddImageWatermark(System.Web.Helpers.WebImage watermarkImage, int width = 0, int height = 0, string horizontalAlign = "Right", string verticalAlign = "Bottom", int opacity = 100, int padding = 5);
member this.AddImageWatermark : System.Web.Helpers.WebImage * int * int * string * string * int * int -> System.Web.Helpers.WebImage
Public Function AddImageWatermark (watermarkImage As WebImage, Optional width As Integer = 0, Optional height As Integer = 0, Optional horizontalAlign As String = "Right", Optional verticalAlign As String = "Bottom", Optional opacity As Integer = 100, Optional padding As Integer = 5) As WebImage
Paramètres
- width
- Int32
Largeur, en pixels, de l'image en filigrane.
- height
- Int32
Hauteur, en pixels, de l'image en filigrane.
- horizontalAlign
- String
Alignement horizontal de l'image en filigrane. Les valeurs possibles sont « Left », « Right » ou « Center ».
- verticalAlign
- String
Alignement vertical de l'image en filigrane. Les valeurs possibles sont « Top », « Middle » ou « Bottom ».
- opacity
- Int32
Opacité de l'image en filigrane, spécifiée sous forme de valeur comprise entre 0 et 100.
- padding
- Int32
Taille, en pixels, du remplissage autour de l'image en filigrane.
Retours
Image en filigrane.