Exemplo n.º 1
0
        private void RenderCircle(CanvasDrawingSession session)
        {
#if DRAW_OUTLINE
            session.DrawRectangle(renderBounds.ToRect(), Colors.Orange);
#endif
            session.FillCircle(renderCenter, renderRadius, Colors.White);

            session.DrawCircle(renderCenter, renderRadius, Colors.DarkGray);
        }
Exemplo n.º 2
0
        public void Render(Win2DRenderable renderable, CanvasDrawingSession session)
        {
#if DRAW_OUTLINE
            session.DrawRectangle(renderBounds.ToRect(), Colors.Turquoise);
#endif
            var color = renderable.Node.HasNotes ? Colors.Black : Colors.Gray;

            session.DrawText(Glyph, renderPosition.X, renderPosition.Y, color, TextFormat);
        }