ImageWatermark Class |
Namespace: GroupDocs.Watermark.Watermarks
The ImageWatermark type exposes the following members.
Name | Description | |
---|---|---|
![]() | ImageWatermark(Stream) |
Initializes a new instance of the ImageWatermark class with a specified stream.
|
![]() | ImageWatermark(String) |
Initializes a new instance of the ImageWatermark class with a specified file path.
|
Name | Description | |
---|---|---|
![]() | ConsiderParentMargins |
Gets or sets a value indicating whether the watermark size and coordinates are calculated
considering parent margins.
(Inherited from Watermark.) |
![]() | Height |
Gets or sets the desired height of this Watermark.
(Inherited from Watermark.) |
![]() | HorizontalAlignment |
Gets or sets the horizontal alignment of this Watermark.
(Inherited from Watermark.) |
![]() | IsBackground |
Gets or sets a value indicating whether the watermark should be placed at background.
(Inherited from Watermark.) |
![]() | Margins |
Gets or sets the margin settings of this Watermark.
(Inherited from Watermark.) |
![]() | Opacity |
Gets or sets the opacity of this Watermark.
(Inherited from Watermark.) |
![]() | RotateAngle |
Gets or sets the rotate angle of this Watermark in degrees.
(Inherited from Watermark.) |
![]() | ScaleFactor |
Gets or sets a value that defines how watermark size depends on parent size.
(Inherited from Watermark.) |
![]() | SizingType |
Gets or sets a value specifying a way watermark should be sized.
(Inherited from Watermark.) |
![]() | VerticalAlignment |
Gets or sets the vertical alignment of this Watermark.
(Inherited from Watermark.) |
![]() | Width |
Gets or sets the desired width of this Watermark.
(Inherited from Watermark.) |
![]() | X |
Gets or sets the x-coordinate of this Watermark.
(Inherited from Watermark.) |
![]() | Y |
Gets or sets the y-coordinate of this Watermark.
(Inherited from Watermark.) |
Name | Description | |
---|---|---|
![]() | Dispose |
Disposes the current instance.
|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
foreach (string filePath in Directory.GetFiles(@"C:\Documents")) { using (Watermarker watermarker = new Watermarker(filePath)) { using (ImageWatermark watermark = new ImageWatermark(@"C:\watermark.png")) { watermark.HorizontalAlignment = HorizontalAlignment.Center; watermark.VerticalAlignment = VerticalAlignment.Center; watermarker.Add(watermark); } watermarker.Save(); } }