Groups
Groups
Sign in
Groups
Groups
skia-discuss
Conversations
About
Send feedback
Help
Overlay bitmap using SkiaSharp
1,184 views
Skip to first unread message
Ahmad Luqman
unread,
Jan 8, 2020, 9:18:09 PM
1/8/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
1/8/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
1/16/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
1/16/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.
https://skia.org/user/api/SkSurface_Reference#SkSurface_makeImageSnapshot
Matthew Leibowitz
unread,
Jan 20, 2020, 10:42:54 AM
1/20/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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