Class Drawing
Helpers for drawing images.
Assembly: Acoustics.Shared.dll
Syntax
public static class Drawing
Fields
|
Improve this Doc
View Source
DefaultConfiguration
A predefined set of graphical options. Currently is equivalent to the default.
Declaration
public static readonly Configuration DefaultConfiguration
Field Value
Type |
Description |
SixLabors.ImageSharp.Configuration |
|
|
Improve this Doc
View Source
NoAntiAlias
A predefined set of graphics options that have anti-aliasing disabled.
Declaration
public static readonly ShapeGraphicsOptions NoAntiAlias
Field Value
Type |
Description |
SixLabors.ImageSharp.Drawing.Processing.ShapeGraphicsOptions |
|
|
Improve this Doc
View Source
NoParallelConfiguration
A predefined set of graphics options with parallelization disabled.
Declaration
public static readonly Configuration NoParallelConfiguration
Field Value
Type |
Description |
SixLabors.ImageSharp.Configuration |
|
|
Improve this Doc
View Source
Roboto
An open source sans-serif font produced by Google that is hopefully a good fallback for missing fonts.
Declaration
public const string Roboto = "Roboto"
Field Value
|
Improve this Doc
View Source
TextOptions
A predefined set of options for rendering text. Currently is equivalent to the default.
Declaration
public static readonly TextGraphicsOptions TextOptions
Field Value
Type |
Description |
SixLabors.ImageSharp.Drawing.Processing.TextGraphicsOptions |
|
Properties
|
Improve this Doc
View Source
Arial10
Declaration
public static Font Arial10 { get; }
Property Value
Type |
Description |
SixLabors.Fonts.Font |
|
|
Improve this Doc
View Source
Arial12
Declaration
public static Font Arial12 { get; }
Property Value
Type |
Description |
SixLabors.Fonts.Font |
|
|
Improve this Doc
View Source
Arial12Bold
Declaration
public static Font Arial12Bold { get; }
Property Value
Type |
Description |
SixLabors.Fonts.Font |
|
|
Improve this Doc
View Source
Arial14
Declaration
public static Font Arial14 { get; }
Property Value
Type |
Description |
SixLabors.Fonts.Font |
|
|
Improve this Doc
View Source
Arial16
Declaration
public static Font Arial16 { get; }
Property Value
Type |
Description |
SixLabors.Fonts.Font |
|
|
Improve this Doc
View Source
Arial8
Declaration
public static Font Arial8 { get; }
Property Value
Type |
Description |
SixLabors.Fonts.Font |
|
|
Improve this Doc
View Source
Arial8Bold
Declaration
public static Font Arial8Bold { get; }
Property Value
Type |
Description |
SixLabors.Fonts.Font |
|
|
Improve this Doc
View Source
Arial9
Declaration
public static Font Arial9 { get; }
Property Value
Type |
Description |
SixLabors.Fonts.Font |
|
|
Improve this Doc
View Source
Arial9Bold
Declaration
public static Font Arial9Bold { get; }
Property Value
Type |
Description |
SixLabors.Fonts.Font |
|
|
Improve this Doc
View Source
BundledFonts
Gets (or initializes) fonts bundled with AP.exe.
Declaration
public static FontCollection BundledFonts { get; }
Property Value
Type |
Description |
SixLabors.Fonts.FontCollection |
|
|
Improve this Doc
View Source
Roboto10
Declaration
public static Font Roboto10 { get; }
Property Value
Type |
Description |
SixLabors.Fonts.Font |
|
|
Improve this Doc
View Source
Roboto6
Declaration
public static Font Roboto6 { get; }
Property Value
Type |
Description |
SixLabors.Fonts.Font |
|
|
Improve this Doc
View Source
Tahoma12
Declaration
public static Font Tahoma12 { get; }
Property Value
Type |
Description |
SixLabors.Fonts.Font |
|
|
Improve this Doc
View Source
Tahoma6
Declaration
public static Font Tahoma6 { get; }
Property Value
Type |
Description |
SixLabors.Fonts.Font |
|
|
Improve this Doc
View Source
Tahoma8
Declaration
public static Font Tahoma8 { get; }
Property Value
Type |
Description |
SixLabors.Fonts.Font |
|
|
Improve this Doc
View Source
Tahoma9
Declaration
public static Font Tahoma9 { get; }
Property Value
Type |
Description |
SixLabors.Fonts.Font |
|
Methods
|
Improve this Doc
View Source
GetFont(String, Single, FontStyle)
Gets the requested font family or falls back to using Roboto
.
Declaration
public static Font GetFont(string fontFamily, float size, FontStyle style = FontStyle.Regular)
Parameters
Type |
Name |
Description |
String |
fontFamily |
The name of the font family to get.
|
Single |
size |
The requested size of the returned font.
|
SixLabors.Fonts.FontStyle |
style |
The requested style of the returned font.
|
Returns
Type |
Description |
SixLabors.Fonts.Font |
Thr requested font, or the Roboto font if the requested font cannot be found.
|
|
Improve this Doc
View Source
MeasureCharacters(String, Font, PointF)
Measures the placement of each character in a rendered string of text.
Declaration
public static GlyphMetric[] MeasureCharacters(string text, Font font, PointF location)
Parameters
Type |
Name |
Description |
String |
text |
|
SixLabors.Fonts.Font |
font |
|
SixLabors.ImageSharp.PointF |
location |
|
Returns
Type |
Description |
SixLabors.Fonts.GlyphMetric[] |
|
|
Improve this Doc
View Source
NewImage(Int32, Int32, Color)
Declaration
public static Image<Rgb24> NewImage(int width, int height, Color fill)
Parameters
Type |
Name |
Description |
Int32 |
width |
|
Int32 |
height |
|
SixLabors.ImageSharp.Color |
fill |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
NewImage<T>(Int32, Int32, Color)
Declaration
public static Image<T> NewImage<T>(int width, int height, Color fill)
where T : struct, IPixel<T>
Parameters
Type |
Name |
Description |
Int32 |
width |
|
Int32 |
height |
|
SixLabors.ImageSharp.Color |
fill |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<T> |
|
Type Parameters