Link to home
Start Free TrialLog in
Avatar of jaalex
jaalex

asked on

How to filp the screen upside down

I would like to try to take all the material that is on
the screen and flip it 180 degrees so that it is upside
down.   Does anyone know how to do this
Avatar of dtowell
dtowell

Turn the monitor over.
Avatar of jaalex

ASKER

That is what we want to do.  We have a display that we want to
turn over.  But we want to see the display correct.
1. create a window that matches the full size of the screen.
2. capture the data from your device context as a bitmap.
3. once you have the handle to the bitmap you'll have to find an algorithm to flip a bitmap.  That involves parsing headers and a lot of other things.
4. search on the internet for code to flip the bitmap.
5. erase the old bitmap and replace it with the new.  Or, you don't have to erase it.

V

Look at the code called bouncer from the VC++  2.0 cd's  to capture the screen image.

Ask more specific questions for more...

The full-size window will be transparent, by the way.  That's one of the important settings, as I recall.  
Avatar of jaalex

ASKER

That might work but we would like to do this in real time.
That would add a lot of overhead to the project and really
slow us down.  I guess I am kinda looking for a vga driver that  will do all of this at the systme level.
ASKER CERTIFIED SOLUTION
Avatar of jaba
jaba

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you want to go lower level, you'll have to:

1. get the name of the vxd responsible for accessing the screen.
2. research how to access it.
3. write an algorithm to do what you're wanting.

The research part will be the worst.  post whatever you find out.