WPF/WinForms/GDI interop: converting a WriteableBitmap to a System.Drawing.Image?

前端 未结 3 971
春和景丽
春和景丽 2021-01-23 01:05

How can I convert a WPF WriteableBitmap object to a System.Drawing.Image?

My WPF client app sends bitmap data to a web service, and the web service needs to construct a

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-23 01:21

    The question is for WPF, and Pixels does not appear to be a property of WriteableBitmap. Some of the answers here point to SilverLight articles, so I suspect this might be a difference between WPF and SilverLight.

提交回复
热议问题