How to paint color on image(bitmap) using skiasharp?

Srinivas Onnaram 1 Reputation point
2021-03-05T14:17:05.533+00:00

I am planning to paint on bitmap with using fingers or marker.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,751 Reputation points
    2021-03-08T06:59:18.753+00:00

    Hello,

    Welcome to Microsoft Q&A!

    1 . Firstly draw bitmap on the canvas , refer to here .

       canvas.DrawBitmap(webBitmap, x, y);  
    

    2 . Then draw the path on canvas using Finger painting ,refer to here .

       foreach (SKPath path in inProgressPaths.Values)  
               {  
                   canvas.DrawPath(path, paint);  
               }  
    

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments