Last active
January 11, 2018 11:24
-
-
Save SteveDunn/a87d72e0180bf5dd4222ed26d01b7e86 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void onCanvasDraw(ICanvasAnimatedControl sender, CanvasAnimatedDrawEventArgs args) | |
{ | |
args.DrawingSession.Transform = _scale; | |
args.DrawingSession.Clear(Colors.Aquamarine); | |
using (var offscreenSession = _offscreenCanvas.CreateDrawingSession()) | |
{ | |
offscreenSession.Clear(Colors.Aquamarine); | |
offscreenSession.DrawText(Text, 0, 0, Colors.Red, _ctf); | |
offscreenSession.DrawLine(new Vector2(0,0), new Vector2(100,10), Colors.Black); | |
} | |
args.DrawingSession.DrawImage(_offscreenCanvas, 0,0); | |
args.DrawingSession.DrawText(Text, 0, 20, Colors.Red, _ctf); | |
args.DrawingSession.DrawLine(new Vector2(0, 20), new Vector2(100, 30), Colors.Black); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment