| Main > Software Forum |
| Rotate screen with VB6 |
| (1/3) > >> |
| DaOld Man:
Hi all.. I was wondering if anyone on here knows how to rotate the screen output in VB6. I have been told it cant be done from withing VB6 itself. TIA.. |
| unclet:
I would ask your question at www.vbcity.com I always get my answers there ...... good luck |
| DaOld Man:
Thanks, I dont see anyway to rotate the screen output, however there were a few posts about rotating images. What I really need is to rotate the screen output. Interesting site though, I added it to my favorites for future reference.. :cheers: |
| headkaze:
Your right it's not really possibly to rotate the screen at any decent speed with VB6. You can capture the screen by getting a handle to the screen's window by using GetDesktopWindow(). But even if you use Direct Memory Access to rotate the bits it will still be a slow affair. Direct Memory Access is the fastest way to manipulate a image's pixels using VB6 AFAIK. The only other method I can think of would be to use Direct3D and write the graphics to a textured quad and rotate the quad. This method in iself would open a can of worms of problems and your limited to texture memory sizes. The only practical way to rotate the screen is using software like iRotate or PivotPro because they use the video card's driver to do the rotation so it's very fast. |
| Howard_Casto:
Those methods don't work particularly well either because they don't always work on directx-based applications (read mame). Modern video cards support native rotation. That is really the only way to go if you need to rotate everything in windows. |
| Navigation |
| Message Index |
| Next page |