PDA

View Full Version : Win GDI or what?



PatB
05-22-2011, 11:15 AM
Hi folks,

I use a 'home-made' c-routine(dll) to scan a windows XP screen for patterns (e.g. getPixel), etc, etc.

Currently I use the GDI API, works quite well with windows XP.
However, with windows7 it appears that the it does not to work anymore when using the dll compiled under win-xp.

Is there an issue between win-XP and win-7 GDI?

Another question is, what is the fastest method to access/scan windows XP/7 video buffer/screen?

Thanks for hints

theold
05-23-2011, 10:17 AM
I dont see exactly what is your problem with windows 7 but we know that GDI+ acceleration is removed on win7.



Another question is, what is the fastest method to access/scan windows XP/7 video buffer/screen?
this : SetDIBitsToDevice (http://msdn.microsoft.com/en-us/library/dd162974(v=vs.85).aspx)

theold
05-23-2011, 07:01 PM
I cant tell what is wrong without checking the code, but fact is windows 7 have no acceleration regarding GDI+.



Another question is, what is the fastest method to access/scan windows XP/7 video buffer/screen?
look SetDIBits / SetDIBitsToDevice methods.

PatB
06-06-2011, 06:47 PM
Thanks for the pointers :-)