简体   繁体   中英

In c# how do I remove the halo from a transparent splash screen

I have a splash screen that is black with white text and a limeGreen background (for transparency key).

the splash screen is part of ac# project.

the image is very irregular in shape and when i run the splash screen although the transparency works i observe a halo around the outside in limegreen (approx 1px).

what can i do to stop the halo effect?

thanks

Create the image again and don't do antialiasing towards the green. The TransparencyKey property works by making all pixels with an exact color transparent, which means if you have antialiasing for making the shape smoother it won't work and leave those half-green/half-content pixels there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM