Ejemplo n.º 1
0
 public void Draw(IGraphicsContext <TFont, TGlyph> context)
 {
     this.DrawBackground(context);
     context.SaveState();
     context.DrawGlyphRunWithOffset(Run, Position, TextColor);
     context.RestoreState();
 }
Ejemplo n.º 2
0
        public void Draw(IGraphicsContext <TFont, TGlyph> context)
        {
            context.SaveState();
            var text = Run.Text;
            var font = Run.Font;

            context.DrawGlyphRunWithOffset(Run, Position, TextColor);
            context.RestoreState();
        }