I have a Windows Forms application written in C# / .NET 4 that includes a Button control with an BackgroundImage. The image used is larger than the button, but the BackgroundImageLayout property is Zoom so that it’s scaled to the size of the button.
On Windows 7, the image looks fine. However, on Windows XP the image looks terrible. It looks as though it has been scaled simply by dropping lines.
Can anyone confirm that this is the expected behaviour, and whether there’s anything I can do to fix the appearance on Windows XP other than by scaling the image myself and using the scaled version in the button?
Thanks.
I can only speculate that on Windows XP GDI system does scaling using simpler interpolation algorithms. Can’t find anything to confirm my guess though.
If you decide to go for manual scaling you can take code and info from these links:
Another far guess – try enabling visual styles on your controls by including manifest in your application: http://msdn.microsoft.com/en-us/library/aa289524%28v=vs.71%29.aspx