| Main > Software Forum |
| Rotate screen with VB6 |
| << < (2/3) > >> |
| Minwah:
--- Quote from: Howard_Casto on September 10, 2006, 02:31:55 am ---Those methods don't work particularly well either because they don't always work on directx-based applications (read mame). --- End quote --- With respect to something like a FE, where only the FE itself need be rotated, would it be possible? I know it's hard/impossible to rotate the screen with the GDI....but I assumed it to be realistically possible using DirectDraw/3D. |
| Howard_Casto:
Well with these exdternal apps it's the opposite. Gdi apps rotate easily (because the apps hack the kernel basically) but that can't be done in non-gdi apps. Rotation on a 3d based application can be done internally fairly easily, not so much with a 2d one, even if it's direct draw based. |
| youki:
--- Quote ---but I assumed it to be realistically possible using DirectDraw/3D. --- End quote --- I use DirectDraw and i rotate the Fe Screen. But i use direct memory access. (as for my alpha blending). DirectDraw have routines to Rotate and Alpha blending. But these routines only work if your videocard has the hardward support for that. And unfortunaly most of current video card didn't have it. (for DDRAW , they have it for D3D) >:( But if you need to simply Mirror or Flip the screen , DDRAW support that via the blt function without the need to have the hardware support. |
| headkaze:
I didn't realise this was for a FE, since he never mentioned that. I just thought he wanted to rotate the entire display. Tom also uses DirectDraw in GameEx and I helped him code the rotate routines using C++. The handle to the Direct Draw surface is passed to the C++ dll and the API functions GetDIBits() and SetDIBits() are used to read the bytes into an array which is then rotated based on the bit depth then the bytes are written back. Using this method the speed is reasonable on a medium spec machine with screen resolution limited to 800x600 and 16 bit colour. |
| DaOld Man:
Actually the need for this was not for a FE. (But it could be in the future.) I wrote a program in VB6 to allow you to make favorites lists in GLaunch (which is a FE). Glaunch can be rotated, but my program cannot be, so it makes it kinda useless if your machine has the rotated screen. Here is a link that decribes my program, if anyone's interested in it: http://members.tripod.com/~Skennys_Outpost/MenuMaker.html Thanks to all who commented. I have pretty much resolved that it cant be done in VB6, not very easily anyway. Maybe I should learn C++?? |
| Navigation |
| Message Index |
| Next page |
| Previous page |