Class GraphicsOptions
- Namespace
- SixLabors.ImageSharp
- Assembly
- SixLabors.ImageSharp.dll
Options for influencing the drawing functions.
public class GraphicsOptions : IDeepCloneable<GraphicsOptions>
- Inheritance
-
GraphicsOptions
- Implements
- Inherited Members
Constructors
GraphicsOptions()
Initializes a new instance of the GraphicsOptions class.
public GraphicsOptions()
Properties
AlphaCompositionMode
Gets or sets a value indicating the alpha composition mode to apply to the drawing operation Defaults to SrcOver.
public PixelAlphaCompositionMode AlphaCompositionMode { get; set; }
Property Value
Antialias
Gets or sets a value indicating whether antialiasing should be applied. Defaults to true.
public bool Antialias { get; set; }
Property Value
AntialiasSubpixelDepth
Gets or sets a value indicating the number of subpixels to use while rendering with antialiasing enabled. Defaults to 16.
public int AntialiasSubpixelDepth { get; set; }
Property Value
BlendPercentage
Gets or sets a value between indicating the blending percentage to apply to the drawing operation. Range 0..1; Defaults to 1.
public float BlendPercentage { get; set; }
Property Value
ColorBlendingMode
Gets or sets a value indicating the color blending mode to apply to the drawing operation. Defaults to Normal.
public PixelColorBlendingMode ColorBlendingMode { get; set; }
Property Value
Methods
DeepClone()
public GraphicsOptions DeepClone()