locked
tiling images RRS feed

  • Question

  • Hi,

         I need to provide tiling support for my application. I used CreateCompatibleBitmap to create bitmap over my hdc and then used CreatePatternBrush to get brush .. which i used in my fillrect call to show up tiling images . but this makes my application extremly slow . wt is better way to provide support



    regards,
    winningbrew
    Wednesday, November 18, 2009 5:29 PM

Answers

  • Hi,

    Instead of blitting it into screen DC one by one, do all the blitting in Memory DC which will be much faster and when all the blitting operation is done, blit all the memory DC content to screen DC in one shot.

    Thank you,
    CED
    • Marked as answer by warrentang Monday, November 23, 2009 5:42 AM
    Thursday, November 19, 2009 7:57 AM