I have a ribbon with some groups and tools. Most of the images are fine looking. All the images are the same size and I am setting the Large/Small appearances to the same image (48x48 PNGs 32b) - but using the default for the sizes (32x32 and 16x16 in the ToolbarManager) respectively. Issue is two of the PopUpColor controls have pixelated images and one StateButtonTool is distorted as well. Should I add images of 16x16 for the small appearance properties or can it render the 48x48 to the proper sizes? In otherwords, could the issue be it needs a 32x32 and 16x16, not just a 48x48 size image? Thanks - note I am not able to attach a jpg screen shot to this post.
I believe setting the images of the appropriate sizes will stop the distortion. The images must be scaled if they are too big, and this can cause distortion in some cases. I would definitely set 32x32 images on the AppearancesLarge collections and 16x16 images on the AppearancesSmall collections.
I am having a similar problem except that I am using .ico files for my images. I am creating my buttons dynamically and I am setting the images on the tool this way:
tool.SharedProps.AppearancesSmall.Appearance.Image = icon.ToBitmap();
Notice that I am forced to convert the icon to a bitmap because if I just do
tool.SharedProps.AppearancesSmall.Appearance.Image = icon;
the image will not be visible. Is there another way to use icons without having to convert them to bitmaps which is most likely distorting the image ? Working with .ico files is practical because you have all 4 formats inside an .ico file (16x16, 24x24, 32x32, 48x48).
Thanks
E
The toolbars manager does not support using Icons for images. However, I believe you can select different icon sizes from an Icon instance by using the constructor which takes an Icon and a Size.