How to draw ARGB bitmap using GDI+?

前端 未结 4 1240
醉梦人生
醉梦人生 2021-01-20 01:02

I have valid HBITMAP handle of ARGB type. How to draw it using GDI+?

I\'ve tried method: graphics.DrawImage(Bitmap::FromHBITMAP(m_hBitmap, NULL), 0, 0); But it doesn

4条回答
  •  时光取名叫无心
    2021-01-20 01:31

    .NET offers the static Image.FromHbitmap method. You can then use this image and invoke DrawImage on the target Graphics object.

提交回复
热议问题