Page 1 of 1

A question...

Posted: Thu 11 May, 2006 11:08 pm
by anykey
My compsci teacher was telling us about things kids in his class have done. One of the apparently flipped the monitor. How could a program do that?
I imagine it involves making the program fullscreen and capturing an image of the screen before doing so. They could probably transform that image into an array and rotate and display it.
This would be done with Java, since that's the language the class uses.

Posted: Fri 12 May, 2006 1:12 am
by Timendus
Uhm... remap the screen and recompile the video driver? Oh, wait, no open source on Windows... :)

Posted: Fri 12 May, 2006 1:45 am
by threefingeredguy
I don't know of a way to screen shot, but you can rotate with AffineTransform.

Posted: Fri 12 May, 2006 7:23 am
by CoBB
That's not fast enough if you always do it to the whole screen. If only the areas that really changed are updated (i. e. most of the time the cursor only), it might be possible.

Posted: Fri 12 May, 2006 11:03 am
by benryves
You could just go into the video driver's control panel and select one of the rotation options. ;)
Some drivers use Ctrl+Alt+Shift+Cursor Key mapped as the default shortcut.

'No open source on Windows' <- wth?

Posted: Fri 12 May, 2006 3:08 pm
by threefingeredguy
CoBB: and you can, with the drawImage() method.

Posted: Sat 13 May, 2006 12:28 am
by Dwedit
Some display drivers let you change the screen rotation, but I don't know if anything like that is going on.

Posted: Sat 13 May, 2006 3:44 am
by ssartell
I just can't imagine this being a useful endeavor.

Posted: Sat 13 May, 2006 1:21 pm
by KevinJB
Of course not, it's just for fun.

Posted: Sat 13 May, 2006 10:42 pm
by Timendus
benryves wrote:'No open source on Windows' <- wth?
Eeh... yes... sorry for that, I had been drinking a couple of beers that night ;) My point was that video card drivers for Windows usually aren't open source, and that therefor you can't just alter them a bit to flip the screen and recompile them :)

Posted: Sun 14 May, 2006 5:46 pm
by anykey
benryves wrote:You could just go into the video driver's control panel and select one of the rotation options. ;)
Some drivers use Ctrl+Alt+Shift+Cursor Key mapped as the default shortcut.

'No open source on Windows' <- wth?
I can't do anything that involves changing settings, since these are school computers.

Posted: Sun 14 May, 2006 5:52 pm
by anykey
Aha! I found out how to do it: Robot.createScreenCapture();
I see some potential for fun pranks using that class...

How would I rotate the bufferedimage? I have very little experience with low level graphics.

Posted: Sun 14 May, 2006 6:30 pm
by threefingeredguy
AffineTransform class, but I am sure there is a lot of other ways too. This will help: once you rotate it, store that image because calculating the rotation will eat up time.

Posted: Tue 16 May, 2006 12:25 am
by anykey
Okay. Thanks!
You'd think the Image class would have some features for that...

Posted: Sun 06 Aug, 2006 2:56 pm
by King Harold
anykey wrote: I can't do anything that involves changing settings, since these are school computers.
programs can do ANYthing you want them to do, it just takes more time and code to make it work
and with school computers it usually isnt all that hard.. its just school afterall, i got the school's server to think im an administrator and messed around a bit
you can even kill most of those computers with simle batch files or starting up in safe-mode, restart in dos mode, format the hidden partition used by Illusion for the backup copy, restart in normal mode, and start messing around..
(although you could have a program kill Illusion or go around it and directly edit setting/memory)

just assuming yout school has Illusion installed and that they're clever enough to put it on a hidden partition..