次の方法で共有


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

ウォーターマーク イメージの水平方向の配置。 "Left"、"Right"、または "Center" を指定できます。

verticalAlign
String

ウォーターマーク イメージの垂直方向の配置。 "Top"、"Middle"、または "Bottom" を指定できます。

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

ウォーターマーク イメージの水平方向の配置。 "Left"、"Right"、または "Center" を指定できます。

verticalAlign
String

ウォーターマーク イメージの垂直方向の配置。 "Top"、"Middle"、または "Bottom" を指定できます。

opacity
Int32

ウォーターマーク イメージの不透明度。0 ~ 100 の値として指定します。

padding
Int32

ウォーターマーク イメージ周囲のスペースのサイズ (ピクセル単位)。

戻り値

ウォーターマーク イメージ。

適用対象