Changing Windows Vista/7's Transparency Color - c#

Ok, so I've heard that the color Microsoft decided to use for there Transparency is Black. Which would explain why black text is invisible when drawn/placed onto a Glass surface.
Wouldn't it just make sense for us to change the transparency color (black) BACK to Magenta? Why didn't they do this again? Is it even possible to change this color?

I'm not sure about chainging the transparent color, but you could render #010101 text and it should be dark enough for black, no? On a glass surface pure black could be hard to see anyway.

Related

How to use a brush over an image in c# so that the background appears highlighted

We have an image and are using Graphics. We want to overlay a rectangle on an image and make it appear highlighted in Yellow (or some other color). What we have done is create rectangle and fill it with a brush. We could use a solid brush and turn down the opacity but it appears muddy. We believe that we could use a gradient brush and use a blend mode to create the highlight.
We want to do something similar to this ( https://www.graphicsmill.com/docs/gm/blending-modes.htm#Multiply ) in c# with the Microsoft library. Does such a thing exist?
Any help would be appreciated.

How can I change the color of my cursor while in a textbox in UWP C#

Hello I am developing an app using C# UWP. I have a text box, when I click on the text box the cursor flashes black and white awaiting the next letter. my question is, is there a way to change the color of this cursor? for example changing it so it flashes red and blue instead of black and white. Thanks!
As Justin XL said there is no such api to change color of cursor currently. In another way,
if you feel that the cursor color is not bright enough, you can try to change the TextBox background or the forgorund color to let cursor appear bright. If you do want this feature, please feel free to submit feature request on UserVoice.

Transparent Control, Transparent PictureBox background, but PictureBox Showing Black Background

I'm creating a launcher for a game I'm working on.
I don't want the square edges of the Control, so I decided to try the route in making the control transparent, and having the PictureBox image I created as what you will mainly see as the background of the App itself.
I have the Control Transparency working, however, even though I've set the PictureBox.BackColor to Transparent, it still shows a Black background.
Basically, I just wanted my launcher to look a little "3d" with the logo and the edges coming out a little bit. So the control is technically larger than the picturebox to make room for parts coming out a bit.
Can anyone tell me where I'm going wrong?

Finding the background colour System.Drawing.Bitmap

After I've drawn an object in the bitmap, I'd like to move it, so I need to draw the object again in the background colour, before drawing again in the proper colour. Assuming this is the correct approach, how do I find out what the background colour actually is?
Thanks,
James
Once you draw your object you can only use GetPixel to obtain the colour:
Bitmap.GetPixel(x,y)
Why not just clearing the whole bitmap and rewriting your object again?
If your bitmap is not extremely large, you won't probably even notice any difference in performance.
Since you have control on the canvas and if you have a "clean" canvas, you can get the color of any pixel before drawing and that should be your background color.
But remember, you don't have a background color on a regular bitmap, just a bunch of pixels! So if your canvas is not clear, or if you don't have a way to get the color before drawing, you have to make assumptions. There a quite a few solutions depending on your requirements. My suggestions are:
You can assume the pixel on the corner are your background colors
The color that appears more often is the background color

Windows 7 Taskbar Icons Highlight Color

Can anyone explain how to calculate the highlight color based on dominant color in images like Windows-7 taskbar when mouse is over the taskbar item?
Any c# code?
I believe what it does is take the most prominent color in the application's icon using a method similar to this: Python - Find dominant/most common color in an image
With that information, it then applies a translucent radial gradient hue and positions it based on your mouse location. The gradient is more white toward the center of your mouse, but the center is actually off screen. The closer to the actual taskbar item, the more transparent it becomes.

Categories

Resources