Export (0) Print
Expand All

WebImage.AddImageWatermark Method (WebImage, Int32, Int32, String, String, Int32, Int32)

Adds a watermark image using the specified image object.

Namespace:  System.Web.Helpers
Assembly:  System.Web.Helpers (in System.Web.Helpers.dll)

public WebImage AddImageWatermark(
	WebImage watermarkImage,
	int width,
	int height,
	string horizontalAlign,
	string verticalAlign,
	int opacity,
	int padding
)

Parameters

watermarkImage
Type: System.Web.Helpers.WebImage
A WebImage object.
width
Type: System.Int32
The width, in pixels, of the watermark image.
height
Type: System.Int32
The height, in pixels, of the watermark image.
horizontalAlign
Type: System.String
The horizontal alignment for watermark image. Values can be "Left", "Right", or "Center".
verticalAlign
Type: System.String
The vertical alignment for the watermark image. Values can be "Top", "Middle", or "Bottom".
opacity
Type: System.Int32
The opacity for the watermark image, specified as a value between 0 and 100.
padding
Type: System.Int32
The size, in pixels, of the padding around the watermark image.

Return Value

Type: System.Web.Helpers.WebImage
The watermarked image.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.
Show:
© 2015 Microsoft