Class SkiaUtils
Contains static methods and properties related to SkiaSharp drawing.
public static class SkiaUtils
- Inheritance
-
SkiaUtils
Properties
- DefaultFont
Gets or sets default font for use with SkiaSharp.
- DefaultFontName
Gets or sets default font name for use with SkiaSharp.
- DefaultFontSize
Gets or sets default font size for use with SkiaSharp.
- DefaultMonoFontName
Gets or sets default fixed-pitch font name.
- DefaultTypeFace
Gets or sets default SKTypeface using to create default SkiaSharp font.
- FontFamilies
Gets all installed font families as array of strings.
Methods
- BitmapIsOk(SKBitmap?)
Gets whether or not specified bitmap is ok.
- CreateDefaultFont()
Creates default font.
- CreateNullCanvas(int, int)
Creates dummy SKCanvas object which performs not painting.
- CreateNullSurface(int, int)
Creates dummy SKSurface object ignores any painting.
- DrawBezier(SKCanvas, Pen, PointD, PointD, PointD, PointD)
Draws a Bezier spline defined by four PointD structures.
- DrawBeziers(SKCanvas, Pen, PointD[])
Draws a series of Bezier splines from an array of PointD structures.
- DrawText(SKCanvas, string, PointD, Font, Color, Color)
Draws text with the specified parameters.
- GetBounds(IEnumerable<RectI>)
Gets bounds of all the rectangles in the collection.
- GetFontFamiliesNames()
Gets all installed font families as enumerable.
- GetFontFamilyName(GenericFontFamily)
Gets font family name for the specified GenericFontFamily value.
- GetTextExtent(SKCanvas, string, Font)
Gets text size.
- IsFamilySkia(string)
Gets whether or not specified font is supported in SkiaSharp.
- ResetFonts()
Resets loaded font families.
- ToSkia(FillMode)
Converts FillMode to SKPathFillType.
- ToSkia(InterpolationMode)
Converts InterpolationMode to SKFilterQuality.