WebImage.AddImageWatermark 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddImageWatermark(String, Int32, Int32, String, String, Int32, Int32) |
使用浮水印影像的路徑來新增浮水印影像。 |
AddImageWatermark(WebImage, Int32, Int32, String, String, Int32, Int32) |
使用指定的影像物件,新增浮水印影像。 |
AddImageWatermark(String, Int32, Int32, String, String, Int32, Int32)
使用浮水印影像的路徑來新增浮水印影像。
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
參數
- watermarkImageFilePath
- String
包含浮水印影像的檔案路徑。
- width
- Int32
浮水印影像的寬度 (像素)。
- height
- Int32
浮水印影像的高度 (像素)。
- horizontalAlign
- String
浮水印影像的水平對齊方式。 值可以是「左」、「右」或「中」。
- verticalAlign
- String
浮水印影像的垂直對齊方式。 值可以是「上」、「中」或「下」。
- opacity
- Int32
浮水印影像的不透明度 (指定為 0 與 100 之間的值)。
- padding
- Int32
浮水印影像周圍之填補的大小 (像素)。
傳回
浮水印影像。
適用於
AddImageWatermark(WebImage, Int32, Int32, String, String, Int32, Int32)
使用指定的影像物件,新增浮水印影像。
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
參數
- width
- Int32
浮水印影像的寬度 (像素)。
- height
- Int32
浮水印影像的高度 (像素)。
- horizontalAlign
- String
浮水印影像的水平對齊方式。 值可以是「左」、「右」或「中」。
- verticalAlign
- String
浮水印影像的垂直對齊方式。 值可以是「上」、「中」或「下」。
- opacity
- Int32
浮水印影像的不透明度 (指定為 0 與 100 之間的值)。
- padding
- Int32
浮水印影像周圍之填補的大小 (像素)。
傳回
浮水印影像。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應