SkiaSharp WPF <- Important
I want to display the Compass.png image at a certain location on my SkiaSharp canvas. I am already drawing lines and circles on the canvas, I do NOT need help with that.
private void MyCanvas_PaintSurface(object sender, SKPaintSurfaceEventArgs e) { var surface = e.Surface; var canvas = surface.Canvas; canvas.Clear(SKColors.Black); // ... working drawing code drawing lines/circles already here // ** Need to add code here to load the compass image from the file and display it on the canvas at say (0, 0)? }
Note: WPF.
https://stackoverflow.com/questions/65820269/how-do-ioad-an-image-from-a-file-and-draw-it-on-a-wpf-skiasharp-canvas January 21, 2021 at 10:12AM
没有评论:
发表评论