Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to speed up set pixel bitmap?
#2
Lightbulb 
SOLVED!
I just realize CaptureImageOnScreen using

Function CaptureImageOnScreen
Code:
Copy      Help
__MemBmp b
if(!b.Create(width height 1 x y)) ret

which is using srcdc of current screen, i think

while my function not using any srcdc

Function BackgroundScreenshot
Code:
Copy      Help
__MemBmp m.Create(width height)

so i change it to using dc of window that i want to capture, then it works like CaptureImageOnScreen. Very fast, it finished at same second

Function BackgroundScreenshot
Code:
Copy      Help
__MemBmp m.Create(width height GetDC(hwnd) x y)

and because it dont need to get and set pixel by pixel anymore, so i remove the dll declaration


Messages In This Thread
How to speed up set pixel bitmap? - by zalan - 05-13-2020, 02:29 AM
SOLVED - by zalan - 05-13-2020, 05:09 AM
RE: How to speed up set pixel bitmap? - by zalan - 05-16-2020, 05:07 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)