Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Transparency and opacity

$
0
0

As the opacity changes the background color is also changed and no longer
matches the TransparencyKey which results in the form. Anyone knows how can I fix this? Is there a way to calculate the
resulting color of after opacity transformation?. I give an example:

TransparencyKey = 255; 192; 192

FormBackColor = 255; 192; 192

Opacity = 100%

Here the background is transparent cause the two colors matches.

TransparencyKey = 255; 192; 192

FormBackColor = (change because of the opacity)

Opacity = 50%

Here is does not work cause the opacity change and the BackColor does not match with the TransparencyKey

Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>