感謝。

解决方案 »

  1.   

    In windows, if the game is running in window mode, GDI or DirectDraw is a good choice. But if the game is fullscreen, it may use DirectDraw.How to do it?GDI:
      Create a bitmap, which size is same as the window client rectangle, as a back buffer, and draw picture on it. When you want to repaint or a repaint message catched, you flip(BitBlt) the back buffer to the window.DirectDraw:
      Create the primary surface and a surface as a backbuffer, draw picture on the backbuffer, and use flip function of the primary surface to flip the backbuffer as the front one. Then the picture you painted will show out.Why use double buffer?
      Your requirement wrote "流暢", so double buffer is necessary.
      

  2.   

    我有用GDI实现的拼图源码
    [email protected]
      

  3.   

    Thomas' answer is enough!