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
ウォーターマーク イメージの水平方向の配置。 "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
パラメーター
- width
- Int32
ウォーターマーク イメージの幅 (ピクセル単位)。
- height
- Int32
ウォーターマーク イメージの高さ (ピクセル単位)。
- horizontalAlign
- String
ウォーターマーク イメージの水平方向の配置。 "Left"、"Right"、または "Center" を指定できます。
- verticalAlign
- String
ウォーターマーク イメージの垂直方向の配置。 "Top"、"Middle"、または "Bottom" を指定できます。
- opacity
- Int32
ウォーターマーク イメージの不透明度。0 ~ 100 の値として指定します。
- padding
- Int32
ウォーターマーク イメージ周囲のスペースのサイズ (ピクセル単位)。
戻り値
ウォーターマーク イメージ。