gdi+ Graphics::DrawImage really slow~~

后端 未结 9 1084
一个人的身影
一个人的身影 2020-12-13 10:48

I am using a GDI+ Graphic to draw a 4000*3000 image to screen, but it is really slow. It takes about 300ms. I wish it just occupy less than 10ms.

Bitmap *bit         


        
9条回答
  •  [愿得一人]
    2020-12-13 11:18

    I have made some researching and wasn't able to find a way to render images with GDI/GDI+ more faster than

    Graphics.DrawImage/DrawImageUnscaled
    

    and at the same time simple like it.

    Till I discovered

    ImageList.Draw(GFX,Point,Index)
    

    and yeah it's really so fast and simple.

提交回复
热议问题