I have a 32x32 png icon that looks very crisp normally, but when I use it in a ButtonTool in a XamRibbon, it looks fuzzy/blurred. I noticed this even in XamFeatureBrowser -- if you compare the sample Paste icon (a clipboard) against a standard Office 2007 icon, it looks fuzzy. See attachment.
The documentation states that the LargeImage should be 32x32: "LargeImage - Usually a 32 x 32 pixel image. You'll see this image when a tool's SizingMode is set to ImageAndTextLarge."
When I measure the rendered icon, it seems to still be 32x32, so I don't think any resizing is occuring.
Suggestions?
Unfortunately, this is a product WPF being resolution independant; elements can (and usually are) positioned along subpixel boundaries so the image is anti-aliased across device pixels. This is a known and documented WPF limitation when using bitmaps:
http://msdn2.microsoft.com/en-us/library/aa970908.aspx
http://blogs.msdn.com/seema/archive/2006/11/07/why-do-my-bitmaps-look-blurry-by-anthony-hodsdon-miles-cohen.aspx
Andrew,
Thank you for your prompt reply.
The issue makes sense, but I am wondering why we do not see this blurriness in our previous vendor's WPF Ribbon control (see attachment)?
I think part of it is that some of the images in that sample are being scaled down (ribbon with richtextbox) - at least the small images. Another part of it is that the heights of the elements in the other vendor are all rounded to even values so as long as the ribbon itself starts on an even pixel (which it normally would since its at the top of the window) the images would start vertically on an even pixel. You can submit the issue and we can look into what can be done about that. http://es.infragistics.com/gethelp/default.aspx