Save canvas to bitmap

前端 未结 6 473
感动是毒
感动是毒 2020-12-06 02:32

I want to save my canvas to bitmap. I found some examples in internet, but all of those saves only black image (with size of my canvas). What can I do with this?

Co

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-06 03:34

    If you are working with windows 10 UWP apps, check this page:

    RenderTargetBitmap Class on Microsoft Docs

    And as a bonus UWP have simplified the process.

提交回复
热议问题