WebImage.AddImageWatermark 方法

定義

多載

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

參數

watermarkImage
WebImage

WebImage 物件。

width
Int32

浮水印影像的寬度 (像素)。

height
Int32

浮水印影像的高度 (像素)。

horizontalAlign
String

浮水印影像的水平對齊方式。 值可以是「左」、「右」或「中」。

verticalAlign
String

浮水印影像的垂直對齊方式。 值可以是「上」、「中」或「下」。

opacity
Int32

浮水印影像的不透明度 (指定為 0 與 100 之間的值)。

padding
Int32

浮水印影像周圍之填補的大小 (像素)。

傳回

浮水印影像。

適用於