question

SrinivasOnnaram-9849 avatar image
0 Votes"
SrinivasOnnaram-9849 asked ·

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

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

dotnet-xamarinformsdotnet-xamarinforms-xaml
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ColeXia-MSFT avatar image
0 Votes"
ColeXia-MSFT answered ·

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.


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.