-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathImageWatermarkOptions.cs
More file actions
26 lines (24 loc) · 916 Bytes
/
ImageWatermarkOptions.cs
File metadata and controls
26 lines (24 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
namespace LazZiya.ImageResize
{
/// <summary>
/// Define options for adding image watermark over the image, like margin, opacity, and location.
/// </summary>
public class ImageWatermarkOptions
{
/// <summary>
/// Margin in pixels. Depends on watermark location. default value 10
/// </summary>
public int Margin { get; set; } = 10;
/// <summary>
/// The location to draw the image watermark. Choose from pre-defined 9 main locations (3 cols, 3 rows).
/// Default value TargetSpot.TopRight.
/// See <see cref="TargetSpot"/>
/// </summary>
public TargetSpot Location { get; set; } = TargetSpot.TopRight;
/// <summary>
/// Set opacity value of the image watermark (0 - 100).
/// Default value 100 full color.
/// </summary>
public int Opacity { get; set; } = 100;
}
}