Class SkiaCanvasRenderer
Draws a display list onto a SkiaSharp canvas: lines, arcs flattened to the pixel, fills, text, and the viewports of a layout clipped to their frames or, for a clipped viewport, the outline of its boundary. It draws what the list holds and asks nothing of the drawing, so it can draw to a window's bitmap or to a PNG for a test. It draws only the items the view shows, found through the space's PickIndex, and spares the detail no eye could see: an item under half a pixel is one pixel of its colour, a text under 5 pixels high is drawn as a bar of its colour (SmallTextAsBars; off, a text under 3 pixels high is left out), and a hatch whose lines come closer than 2 pixels is filled with a tint of its colour. A selected or hovered entity is always drawn whole.
public sealed class SkiaCanvasRenderer : IDisposable
- Inheritance
-
SkiaCanvasRenderer
- Implements
- Inherited Members
Methods
- Dispose()
Releases the typefaces.
- HasFamily(string)
Gets whether the canvas has a TrueType typeface of a name, as CadFonts asks before it replaces a style's typeface: Arial on Windows, no typeface of a name no font gives.
- MeasureWidth(string, bool, bool, string)
Measures letters as the canvas draws them, for MeasureWidth: the width of the letters one unit high in the family's face, bold or italic, the canvas's own font (Arial) for none.
- Render(SKCanvas, CadDocument, CadSpace, CadView, CanvasOptions)
Draws a space of a document.