Overlay bitmap using SkiaSharp

1,184 views
Skip to first unread message

Ahmad Luqman

unread,
Jan 8, 2020, 9:18:09 PM1/8/20
to skia-discuss
Good Morning

i am new to Skiasharp. Can i overlay bitmap drawing onto another bitmap?  

Shawn Riordan

unread,
Jan 8, 2020, 10:09:37 PM1/8/20
to skia-discuss
You can draw one image onto a canvas (the screen) and then draw another image on top of that one.

You can composite two images into a single image.

Can you be more specific about what you are trying to do?

Ahmad Luqman

unread,
Jan 16, 2020, 4:18:32 AM1/16/20
to skia-discuss
Sorry for late reply. What i am trying to do is i want to overlay multiple surfaces onto the same canvas.

Peter Verswyvelen

unread,
Jan 16, 2020, 7:01:10 AM1/16/20
to skia-discuss
You should be able to call makeImageSnapshot on each surface, and then use the snapshot as an image to draw on the canvas.

Matthew Leibowitz

unread,
Jan 20, 2020, 10:42:54 AM1/20/20
to skia-discuss
There is also the DrawSurface: https://docs.microsoft.com/dotnet/api/skiasharp.skcanvas.drawsurface

Not sure exactly what you are looking for. Maybe you are also thinking blend modes? Or is this just the basic draw A over B?
Reply all
Reply to author
Forward
0 new messages