UtilAsposeAddTextWatermark(Image, String, Font, Color, WatermarkPosition, Single, Single) Method

Adds a text watermark at a prefedined position into an image.

Definition

Namespace: DevCase.ThirdParty.Aspose
Assembly: DevCase.net48.ThirdParty.Aspose (in DevCase.net48.ThirdParty.Aspose.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Image AddTextWatermark(
	Image img,
	string text,
	Font fnt,
	Color color,
	WatermarkPosition position,
	float verticalmargin = 0f,
	float horizontalmargin = 0f
)

Parameters

img  Image
The source image.
text  String
The watermark text.
fnt  Font
The watermark font.
color  Color
The watermark color.
position  WatermarkPosition
The watermark position.
verticalmargin  Single  (Optional)
The watermark vertical margin.
horizontalmargin  Single  (Optional)
The watermark horizontal margin.

Return Value

Image
The resulting Image.

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:

Aspose.Imaging by Aspose

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also