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