windows本身有一个cards.dll很多人在用, 你为什么不用呢???

解决方案 »

  1.   

    把Draw(1,1, BmpList[BmpId])用bitblt替换吧
    BitBlt(PaintBox.Canvas.Handle, 0, 0, 100, 100, BmpList[BmpId].Handle,
    0, 0, SRCCOPY)
      

  2.   

    本人回复:好感激ZDG大哥。Cards.dll怎么用?有源码示例吗?
      

  3.   

    十分感谢老虎哥:我把您的BITBLT粘贴进去以后出来的只有边框线了,好象中心的图案根本没有画出来,怎么回事?
      

  4.   

    肯定是能出来的, 你的BmpList是Tbitmap吗?
    看看BitBlt的定义吧.
    BOOL BitBlt(    HDC hdcDest, // handle to destination device context 
        int nXDest, // x-coordinate of destination rectangle's upper-left corner
        int nYDest, // y-coordinate of destination rectangle's upper-left corner
        int nWidth, // width of destination rectangle 
        int nHeight, // height of destination rectangle 
        HDC hdcSrc, // handle to source device context 
        int nXSrc, // x-coordinate of source rectangle's upper-left corner  
        int nYSrc, // y-coordinate of source rectangle's upper-left corner
        DWORD dwRop  // raster operation code 
       );
      

  5.   

    如果是TBitMap的话, 要这样:
    BitBlt(PaintBox.Canvas.Handle, 0, 0, 100, 100, 
    BmpList[BmpId].Canvas.Handle, 0, 0, SRCCOPY)