Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • Last Modified:

Change the colour of the whole wnidow.

Hi all

I want to change the colour of the whole screen red.  Basically, I want to be able to use my laptop for Astronomy, and need to get the screen so that it only ever outputs in red, regardless of what program I've got loaded.

I need to hook into the screen output, and change the screen into black and red (similar to black and white).

How can I do this?

Regards
0
Colin_Dawson
Asked:
Colin_Dawson
  • 4
  • 2
  • 2
  • +3
1 Solution
 
dragontron3kCommented:
so basically you want a two-bit color depth, but wit black and red instead of black and white?
0
 
Colin_DawsonAuthor Commented:
What I want an effect that's the same as placing a piece of red plastic over a black and white TV Screen.
0
 
Wim ten BrinkCommented:
Windows won't allow you to do this, sorry.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
BlackTigerXCommented:
just go to the control panel and change all the colors to red... =o)
0
 
dragontron3kCommented:
I think the best thing to do is to search for a program that cand get your display settings down to monochrome (unless you're using an older windows, in which case you can use the display properties) then get a program (if your monitor doesn't support it in it's options menu) to adjust your gamma settings so that you only get red. Of course, I have no idea how to do this programatically, so I can't show you.
0
 
MolandoCommented:
You will probably need to place a thin sheet of clear red plastic/film over the screen.
you could see if your graphics card supports colour management, then drop the green and blue values out of the equation. Also some monitors let you set the amount of red/green/blue on the screen. There is no way that I know of to do this with code.
0
 
Colin_DawsonAuthor Commented:
It is possible to do this with somesuccess.  I've seen it done with RedShift 5.
0
 
TyrsisCommented:
The closest I could come to this was to set a Form red, make it a bsNone style window, and a top most window.  Then set it's Alpha Blending (windows 2000 minimum) property to true and set AlphaBlendValue to 200, then do a SetWindowLong(Handle, GWL_EXSTYLE, AStyle or WS_EX_TRANSPARENT);  This makes your windows look like you have a piece of red plastic over your screen.
0
 
Colin_DawsonAuthor Commented:
Tyrsis,

That's cool.   I've got the transparency implemented and am making real progress with this.   This is almost there.
The transparent window won't stay over the Start menu.   I think this is the last issue that needs to be sorted.

Regards

Colin.
0
 
TyrsisCommented:
Unfortunately you can't push ahead of popup menus and the start menu in the Z order once they want to push past your window.  At least I wasn't able to easily find a way to change the Z order of the window to get ahead of these items.  Perhaps you could play around with Window positions and see if it's possible?

The only other hunch I would try to do everything you wanted, is trying to get a bitmap of the entire screen (you can do this with CreateDC("display"...)), then blitting that to a canvas of a form that has the WS_EX_TRANSPARENT flag set, then shifting that to monochrome using a monochrome function (There are many out there).  Then placing the red translucent form on top of that or just having an Alpha Blending function that you use after you shifted the first form to monochrome.  And then just use a timer to constantly do this over and over as updates occur.  This may be extremely slow, but it may work.  Unfortunately I don't have a lot of time to try it all out, but hopefully it's something you can look into.

Good luck!

Tyrsis  
0
 
Colin_DawsonAuthor Commented:
As usual, the questions that I ask here are beyond what other people are able to do/or are willing to share (is there a difference?)

Tyrsis has helped a little with this, but there's not been any solution that I'm happy with.  I'd be extremely surprised if it's not possible to turn the screen into a black and white (err I mean red) using some kind of program.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 2
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now