I have a Windows Forms app where I created a UserControl that consists of two Buttons and one Label. The Buttons have an png with transparent Background assigned.
If I look at the UserControl in the Windows Forms Designer it looks great. However, if I drop the UserControl onto a form it doesn't have it's smooth edges anymore.
Here are some screenshot to show what I mean:
Does anyone know how to fix this?
I tried the thing you have said.. I have few suggestions
Anyway you can try with another image. Because when I tried this with my PNGs no problems occured.
From the looks of it, you are rescaling your PNG for few pixels down or up. Try to see what will happen if you ensure that size on the screen is the size of the image itself.
So, try to increase or decrease button sizes one pixel at a time and see what happens.
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.