-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathGraphicOptions.cs
47 lines (41 loc) · 1.46 KB
/
GraphicOptions.cs
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System.Drawing;
using System.Drawing.Drawing2D;
namespace LazZiya.ImageResize
{
/// <summary>
/// Define graphic options
/// </summary>
public class GraphicOptions
{
/// <summary>
/// Composition quality.
/// Default: CompositingQuality.HighQuality
/// </summary>
public CompositingQuality CompositingQuality { get; set; } = CompositingQuality.HighQuality;
/// <summary>
/// Smoothing mode.
/// Default: SmoothingMode.HighQuality
/// </summary>
public SmoothingMode SmoothingMode { get; set; } = SmoothingMode.HighQuality;
/// <summary>
/// Interpolation mode.
/// Default: InterpolationMode.HighQualityBicubic
/// </summary>
public InterpolationMode InterpolationMode { get; set; } = InterpolationMode.HighQualityBicubic;
/// <summary>
/// Pixel offset mode.
/// Default: PixelOffsetMode.HighQuality
/// </summary>
public PixelOffsetMode PixelOffsetMode { get; set; } = PixelOffsetMode.HighQuality;
/// <summary>
/// Composition mode.
/// Default: CompositingMode.SourceOver
/// </summary>
public CompositingMode CompositingMode { get; set; } = CompositingMode.SourceOver;
/// <summary>
/// Page unit.
/// Default: GraphicsUnit.Pixel
/// </summary>
public GraphicsUnit PageUnit { get; set; } = GraphicsUnit.Pixel;
}
}